Class VkBindDescriptorSetsInfo

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
Direct Known Subclasses:
VkBindDescriptorSetsInfoKHR

public class VkBindDescriptorSetsInfo extends Struct<VkBindDescriptorSetsInfo> implements NativeResource

 struct VkBindDescriptorSetsInfo {
     VkStructureType sType;
     void const * pNext;
     VkShaderStageFlags stageFlags;
     VkPipelineLayout layout;
     uint32_t firstSet;
     uint32_t descriptorSetCount;
     VkDescriptorSet const * pDescriptorSets;
     uint32_t dynamicOffsetCount;
     uint32_t const * pDynamicOffsets;
 }
  • 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.
    • STAGEFLAGS

      public static final int STAGEFLAGS
      The struct member offsets.
    • LAYOUT

      public static final int LAYOUT
      The struct member offsets.
    • FIRSTSET

      public static final int FIRSTSET
      The struct member offsets.
    • DESCRIPTORSETCOUNT

      public static final int DESCRIPTORSETCOUNT
      The struct member offsets.
    • PDESCRIPTORSETS

      public static final int PDESCRIPTORSETS
      The struct member offsets.
    • DYNAMICOFFSETCOUNT

      public static final int DYNAMICOFFSETCOUNT
      The struct member offsets.
    • PDYNAMICOFFSETS

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

    • VkBindDescriptorSetsInfo

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

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<VkBindDescriptorSetsInfo>
    • sType

      public int sType()
      Returns:
      the value of the sType field.
    • pNext

      public long pNext()
      Returns:
      the value of the pNext field.
    • stageFlags

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

      public long layout()
      Returns:
      the value of the layout field.
    • firstSet

      public int firstSet()
      Returns:
      the value of the firstSet field.
    • descriptorSetCount

      public int descriptorSetCount()
      Returns:
      the value of the descriptorSetCount field.
    • pDescriptorSets

      public LongBuffer pDescriptorSets()
      Returns:
      a LongBuffer view of the data pointed to by the pDescriptorSets field.
    • dynamicOffsetCount

      public int dynamicOffsetCount()
      Returns:
      the value of the dynamicOffsetCount field.
    • pDynamicOffsets

      public @Nullable IntBuffer pDynamicOffsets()
      Returns:
      a IntBuffer view of the data pointed to by the pDynamicOffsets field.
    • sType

      public VkBindDescriptorSetsInfo sType(int value)
      Sets the specified value to the sType field.
    • sType$Default

      public VkBindDescriptorSetsInfo sType$Default()
      Sets the STRUCTURE_TYPE_BIND_DESCRIPTOR_SETS_INFO value to the sType field.
    • pNext

      public VkBindDescriptorSetsInfo pNext(long value)
      Sets the specified value to the pNext field.
    • pNext

      Prepends the specified VkPipelineLayoutCreateInfo value to the pNext chain.
    • stageFlags

      public VkBindDescriptorSetsInfo stageFlags(int value)
      Sets the specified value to the stageFlags field.
    • layout

      public VkBindDescriptorSetsInfo layout(long value)
      Sets the specified value to the layout field.
    • firstSet

      public VkBindDescriptorSetsInfo firstSet(int value)
      Sets the specified value to the firstSet field.
    • pDescriptorSets

      public VkBindDescriptorSetsInfo pDescriptorSets(LongBuffer value)
      Sets the address of the specified LongBuffer to the pDescriptorSets field.
    • dynamicOffsetCount

      public VkBindDescriptorSetsInfo dynamicOffsetCount(int value)
      Sets the specified value to the dynamicOffsetCount field.
    • pDynamicOffsets

      public VkBindDescriptorSetsInfo pDynamicOffsets(@Nullable IntBuffer value)
      Sets the address of the specified IntBuffer to the pDynamicOffsets field.
    • set

      public VkBindDescriptorSetsInfo set(int sType, long pNext, int stageFlags, long layout, int firstSet, LongBuffer pDescriptorSets, int dynamicOffsetCount, @Nullable IntBuffer pDynamicOffsets)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static VkBindDescriptorSetsInfo malloc()
      Returns a new VkBindDescriptorSetsInfo instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static VkBindDescriptorSetsInfo calloc()
      Returns a new VkBindDescriptorSetsInfo instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static VkBindDescriptorSetsInfo create()
      Returns a new VkBindDescriptorSetsInfo instance allocated with BufferUtils.
    • create

      public static VkBindDescriptorSetsInfo create(long address)
      Returns a new VkBindDescriptorSetsInfo instance for the specified memory address.
    • createSafe

      public static @Nullable VkBindDescriptorSetsInfo createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static VkBindDescriptorSetsInfo.Buffer malloc(int capacity)
      Returns a new VkBindDescriptorSetsInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static VkBindDescriptorSetsInfo.Buffer calloc(int capacity)
      Returns a new VkBindDescriptorSetsInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkBindDescriptorSetsInfo.Buffer create(int capacity)
      Returns a new VkBindDescriptorSetsInfo.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkBindDescriptorSetsInfo.Buffer create(long address, int capacity)
      Create a VkBindDescriptorSetsInfo.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable VkBindDescriptorSetsInfo.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static VkBindDescriptorSetsInfo malloc(MemoryStack stack)
      Returns a new VkBindDescriptorSetsInfo instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static VkBindDescriptorSetsInfo calloc(MemoryStack stack)
      Returns a new VkBindDescriptorSetsInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static VkBindDescriptorSetsInfo.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new VkBindDescriptorSetsInfo.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static VkBindDescriptorSetsInfo.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new VkBindDescriptorSetsInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nsType

      public static int nsType(long struct)
      Unsafe version of sType().
    • npNext

      public static long npNext(long struct)
      Unsafe version of pNext().
    • nstageFlags

      public static int nstageFlags(long struct)
      Unsafe version of stageFlags().
    • nlayout

      public static long nlayout(long struct)
      Unsafe version of layout().
    • nfirstSet

      public static int nfirstSet(long struct)
      Unsafe version of firstSet().
    • ndescriptorSetCount

      public static int ndescriptorSetCount(long struct)
      Unsafe version of descriptorSetCount().
    • npDescriptorSets

      public static LongBuffer npDescriptorSets(long struct)
      Unsafe version of pDescriptorSets.
    • ndynamicOffsetCount

      public static int ndynamicOffsetCount(long struct)
      Unsafe version of dynamicOffsetCount().
    • npDynamicOffsets

      public static @Nullable IntBuffer npDynamicOffsets(long struct)
      Unsafe version of pDynamicOffsets.
    • nsType

      public static void nsType(long struct, int value)
      Unsafe version of sType.
    • npNext

      public static void npNext(long struct, long value)
      Unsafe version of pNext.
    • nstageFlags

      public static void nstageFlags(long struct, int value)
      Unsafe version of stageFlags.
    • nlayout

      public static void nlayout(long struct, long value)
      Unsafe version of layout.
    • nfirstSet

      public static void nfirstSet(long struct, int value)
      Unsafe version of firstSet.
    • ndescriptorSetCount

      public static void ndescriptorSetCount(long struct, int value)
      Sets the specified value to the descriptorSetCount field of the specified struct.
    • npDescriptorSets

      public static void npDescriptorSets(long struct, LongBuffer value)
      Unsafe version of pDescriptorSets.
    • ndynamicOffsetCount

      public static void ndynamicOffsetCount(long struct, int value)
      Sets the specified value to the dynamicOffsetCount field of the specified struct.
    • npDynamicOffsets

      public static void npDynamicOffsets(long struct, @Nullable IntBuffer value)
      Unsafe version of pDynamicOffsets.
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate