Class VkDescriptorBufferInfo

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

public class VkDescriptorBufferInfo extends org.lwjgl.system.Struct<VkDescriptorBufferInfo> implements org.lwjgl.system.NativeResource
Structure specifying descriptor buffer information.
Description

For DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC and DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC descriptor types, offset is the base offset from which the dynamic offset is applied and range is the static size used for all dynamic offsets.

When range is WHOLE_SIZE the effective range is calculated at UpdateDescriptorSets is by taking the size of buffer minus the offset.

Valid Usage
  • offset must be less than the size of buffer
  • If range is not equal to WHOLE_SIZE, range must be greater than 0
  • If range is not equal to WHOLE_SIZE, range must be less than or equal to the size of buffer minus offset
  • If the nullDescriptor feature is not enabled, buffer must not be NULL_HANDLE
  • If buffer is NULL_HANDLE, offset must be zero and range must be WHOLE_SIZE
Valid Usage (Implicit)
  • If buffer is not NULL_HANDLE, buffer must be a valid VkBuffer handle
See Also

VkWriteDescriptorSet

Layout


 struct VkDescriptorBufferInfo {
     VkBuffer buffer();
     VkDeviceSize offset();
     VkDeviceSize range();
 }
  • Field Details

    • SIZEOF

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

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

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

      public static final int OFFSET
      The struct member offsets.
    • RANGE

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

    • VkDescriptorBufferInfo

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