Class VkDescriptorUpdateTemplateEntry

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
    Direct Known Subclasses:
    VkDescriptorUpdateTemplateEntryKHR

    public class VkDescriptorUpdateTemplateEntry
    extends org.lwjgl.system.Struct
    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, as described by consecutive binding updates
    • 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 Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • DSTBINDING, DSTARRAYELEMENT, DESCRIPTORCOUNT, DESCRIPTORTYPE, OFFSET, STRIDE

        The struct member offsets.
    • Constructor Detail

      • VkDescriptorUpdateTemplateEntry

        public VkDescriptorUpdateTemplateEntry​(java.nio.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.