Class VkBindBufferMemoryInfo

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

public class VkBindBufferMemoryInfo extends org.lwjgl.system.Struct<VkBindBufferMemoryInfo> implements org.lwjgl.system.NativeResource
Structure specifying how to bind a buffer to memory.
Valid Usage
Valid Usage (Implicit)
  • sType must be STRUCTURE_TYPE_BIND_BUFFER_MEMORY_INFO
  • pNext must be NULL or a pointer to a valid instance of VkBindBufferMemoryDeviceGroupInfo
  • The sType value of each struct in the pNext chain must be unique
  • buffer must be a valid VkBuffer handle
  • memory must be a valid VkDeviceMemory handle
  • Both of buffer, and memory must have been created, allocated, or retrieved from the same VkDevice
See Also

BindBufferMemory2, BindBufferMemory2KHR

Layout


 struct VkBindBufferMemoryInfo {
     VkStructureType sType();
     void const * pNext();
     VkBuffer buffer();
     VkDeviceMemory memory();
     VkDeviceSize memoryOffset();
 }
  • 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.
    • BUFFER

      public static final int BUFFER
      The struct member offsets.
    • MEMORY

      public static final int MEMORY
      The struct member offsets.
    • MEMORYOFFSET

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

    • VkBindBufferMemoryInfo

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