Class VkBufferUsageFlags2CreateInfo

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

public class VkBufferUsageFlags2CreateInfo extends org.lwjgl.system.Struct<VkBufferUsageFlags2CreateInfo> implements org.lwjgl.system.NativeResource
Extended buffer usage flags.
Description

If this structure is included in the pNext chain of a buffer creation structure, usage is used instead of the corresponding usage value passed in that creation structure, allowing additional usage flags to be specified. If this structure is included in the pNext chain of a buffer query structure, the usage flags of the buffer are returned in usage of this structure, and the usage flags representable in usage of the buffer query structure are also returned in that field.

Valid Usage (Implicit)

Layout


 struct VkBufferUsageFlags2CreateInfo {
     VkStructureType sType();
     void const * pNext();
     VkBufferUsageFlags2 usage();
 }
  • 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.
    • USAGE

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

    • VkBufferUsageFlags2CreateInfo

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