Class VkImageStencilUsageCreateInfo

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkImageStencilUsageCreateInfo>
org.lwjgl.vulkan.VkImageStencilUsageCreateInfo
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
Direct Known Subclasses:
VkImageStencilUsageCreateInfoEXT

public class VkImageStencilUsageCreateInfo extends org.lwjgl.system.Struct<VkImageStencilUsageCreateInfo> implements org.lwjgl.system.NativeResource
Specify separate usage flags for the stencil aspect of a depth-stencil image.
Description

If the pNext chain of VkImageCreateInfo includes a VkImageStencilUsageCreateInfo structure, then that structure includes the usage flags specific to the stencil aspect of the image for an image with a depth-stencil format.

This structure specifies image usages which only apply to the stencil aspect of a depth/stencil format image. When this structure is included in the pNext chain of VkImageCreateInfo, the stencil aspect of the image must only be used as specified by stencilUsage. When this structure is not included in the pNext chain of VkImageCreateInfo, the stencil aspect of an image must only be used as specified by VkImageCreateInfo::usage. Use of other aspects of an image are unaffected by this structure.

This structure can also be included in the pNext chain of VkPhysicalDeviceImageFormatInfo2 to query additional capabilities specific to image creation parameter combinations including a separate set of usage flags for the stencil aspect of the image using GetPhysicalDeviceImageFormatProperties2. When this structure is not included in the pNext chain of VkPhysicalDeviceImageFormatInfo2 then the implicit value of stencilUsage matches that of VkPhysicalDeviceImageFormatInfo2::usage.

Valid Usage
Valid Usage (Implicit)

Layout


 struct VkImageStencilUsageCreateInfo {
     VkStructureType sType();
     void const * pNext();
     VkImageUsageFlags stencilUsage();
 }
  • 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.
    • STENCILUSAGE

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

    • VkImageStencilUsageCreateInfo

      public VkImageStencilUsageCreateInfo(ByteBuffer container)
      Creates a VkImageStencilUsageCreateInfo 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