Class VkDescriptorUpdateTemplateEntry

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

public class VkDescriptorUpdateTemplateEntry extends org.lwjgl.system.Struct<VkDescriptorUpdateTemplateEntry> implements org.lwjgl.system.NativeResource
Describes a single descriptor update of the descriptor update template.
Valid Usage
  • dstBinding must be a valid binding in the descriptor set layout implicitly specified when using a descriptor update template to update descriptors
  • dstArrayElement and descriptorCount must be less than or equal to the number of array elements in the descriptor set binding implicitly specified when using a descriptor update template to update descriptors, and all applicable consecutive bindings
  • If descriptor type is DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK, dstArrayElement must be an integer multiple of 4
  • If descriptor type is DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK, descriptorCount must be an integer multiple of 4
Valid Usage (Implicit)
  • descriptorType must be a valid VkDescriptorType value
See Also

VkDescriptorUpdateTemplateCreateInfo

Layout


 struct VkDescriptorUpdateTemplateEntry {
     uint32_t dstBinding();
     uint32_t dstArrayElement();
     uint32_t descriptorCount();
     VkDescriptorType descriptorType();
     size_t offset();
     size_t stride();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int DSTBINDING
      The struct member offsets.
    • DSTARRAYELEMENT

      public static final int DSTARRAYELEMENT
      The struct member offsets.
    • DESCRIPTORCOUNT

      public static final int DESCRIPTORCOUNT
      The struct member offsets.
    • DESCRIPTORTYPE

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

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

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

    • VkDescriptorUpdateTemplateEntry

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