Class VkImageViewSlicedCreateInfoEXT

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkImageViewSlicedCreateInfoEXT>
org.lwjgl.vulkan.VkImageViewSlicedCreateInfoEXT
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VkImageViewSlicedCreateInfoEXT extends org.lwjgl.system.Struct<VkImageViewSlicedCreateInfoEXT> implements org.lwjgl.system.NativeResource
Specify the subset of 3D slices of an image view.
Description

When this structure is chained to VkImageViewCreateInfo the sliceOffset field is treated as a Z-offset for the sliced view and sliceCount specifies the range. Shader accesses using a Z coordinate of 0 will access the depth slice corresponding to sliceOffset in the image, and in a shader, the maximum in-bounds Z coordinate for the view is sliceCount - 1.

A sliced 3D view must only be used with a single mip level. The slice coordinates are integer coordinates within the subresourceRange.baseMipLevel used to create the image view.

The effective view depth is equal to extent.depth used to create the image for this view adjusted by subresourceRange.baseMipLevel as specified in Image Mip Level Sizing.

Shader access to this image view is only affected by VkImageViewSlicedCreateInfoEXT if it uses a descriptor of type DESCRIPTOR_TYPE_STORAGE_IMAGE. For access using any other descriptor type, the contents of VkImageViewSlicedCreateInfoEXT are ignored; instead, sliceOffset is treated as being equal to 0, and sliceCount is treated as being equal to REMAINING_3D_SLICES_EXT.

Valid Usage
Valid Usage (Implicit)

Layout


 struct VkImageViewSlicedCreateInfoEXT {
     VkStructureType sType();
     void const * pNext();
     uint32_t sliceOffset();
     uint32_t sliceCount();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • STYPE

      public static final int STYPE
      The struct member offsets.
    • PNEXT

      public static final int PNEXT
      The struct member offsets.
    • SLICEOFFSET

      public static final int SLICEOFFSET
      The struct member offsets.
    • SLICECOUNT

      public static final int SLICECOUNT
      The struct member offsets.
  • Constructor Details

    • VkImageViewSlicedCreateInfoEXT

      public VkImageViewSlicedCreateInfoEXT(ByteBuffer container)
      Creates a VkImageViewSlicedCreateInfoEXT instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details