Class VkDescriptorSetLayoutBinding.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<VkDescriptorSetLayoutBinding>, NativeResource, Pointer
Enclosing class:
VkDescriptorSetLayoutBinding

public static class VkDescriptorSetLayoutBinding.Buffer extends StructBuffer<VkDescriptorSetLayoutBinding,VkDescriptorSetLayoutBinding.Buffer> implements NativeResource
An array of VkDescriptorSetLayoutBinding structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new VkDescriptorSetLayoutBinding.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by VkDescriptorSetLayoutBinding.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • binding

      public int binding()
      Returns:
      the value of the binding field.
    • descriptorType

      public int descriptorType()
      Returns:
      the value of the descriptorType field.
    • descriptorCount

      public int descriptorCount()
      Returns:
      the value of the descriptorCount field.
    • stageFlags

      public int stageFlags()
      Returns:
      the value of the stageFlags field.
    • pImmutableSamplers

      public @Nullable LongBuffer pImmutableSamplers()
      Returns:
      a LongBuffer view of the data pointed to by the pImmutableSamplers field.
    • binding

      public VkDescriptorSetLayoutBinding.Buffer binding(int value)
      Sets the specified value to the binding field.
    • descriptorType

      public VkDescriptorSetLayoutBinding.Buffer descriptorType(int value)
      Sets the specified value to the descriptorType field.
    • descriptorCount

      public VkDescriptorSetLayoutBinding.Buffer descriptorCount(int value)
      Sets the specified value to the descriptorCount field.
    • stageFlags

      public VkDescriptorSetLayoutBinding.Buffer stageFlags(int value)
      Sets the specified value to the stageFlags field.
    • pImmutableSamplers

      public VkDescriptorSetLayoutBinding.Buffer pImmutableSamplers(@Nullable LongBuffer value)
      Sets the address of the specified LongBuffer to the pImmutableSamplers field.