Class VkCopyDescriptorSet

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkCopyDescriptorSet extends Struct<VkCopyDescriptorSet> implements NativeResource

 struct VkCopyDescriptorSet {
     VkStructureType sType;
     void const * pNext;
     VkDescriptorSet srcSet;
     uint32_t srcBinding;
     uint32_t srcArrayElement;
     VkDescriptorSet dstSet;
     uint32_t dstBinding;
     uint32_t dstArrayElement;
     uint32_t descriptorCount;
 }
  • 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.
    • SRCSET

      public static final int SRCSET
      The struct member offsets.
    • SRCBINDING

      public static final int SRCBINDING
      The struct member offsets.
    • SRCARRAYELEMENT

      public static final int SRCARRAYELEMENT
      The struct member offsets.
    • DSTSET

      public static final int DSTSET
      The struct member offsets.
    • 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.
  • Constructor Details

    • VkCopyDescriptorSet

      public VkCopyDescriptorSet(ByteBuffer container)
      Creates a VkCopyDescriptorSet 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<VkCopyDescriptorSet>
    • sType

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

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

      public long srcSet()
      Returns:
      the value of the srcSet field.
    • srcBinding

      public int srcBinding()
      Returns:
      the value of the srcBinding field.
    • srcArrayElement

      public int srcArrayElement()
      Returns:
      the value of the srcArrayElement field.
    • dstSet

      public long dstSet()
      Returns:
      the value of the dstSet field.
    • dstBinding

      public int dstBinding()
      Returns:
      the value of the dstBinding field.
    • dstArrayElement

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

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

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

      public VkCopyDescriptorSet sType$Default()
      Sets the STRUCTURE_TYPE_COPY_DESCRIPTOR_SET value to the sType field.
    • pNext

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

      public VkCopyDescriptorSet srcSet(long value)
      Sets the specified value to the srcSet field.
    • srcBinding

      public VkCopyDescriptorSet srcBinding(int value)
      Sets the specified value to the srcBinding field.
    • srcArrayElement

      public VkCopyDescriptorSet srcArrayElement(int value)
      Sets the specified value to the srcArrayElement field.
    • dstSet

      public VkCopyDescriptorSet dstSet(long value)
      Sets the specified value to the dstSet field.
    • dstBinding

      public VkCopyDescriptorSet dstBinding(int value)
      Sets the specified value to the dstBinding field.
    • dstArrayElement

      public VkCopyDescriptorSet dstArrayElement(int value)
      Sets the specified value to the dstArrayElement field.
    • descriptorCount

      public VkCopyDescriptorSet descriptorCount(int value)
      Sets the specified value to the descriptorCount field.
    • set

      public VkCopyDescriptorSet set(int sType, long pNext, long srcSet, int srcBinding, int srcArrayElement, long dstSet, int dstBinding, int dstArrayElement, int descriptorCount)
      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 VkCopyDescriptorSet malloc()
      Returns a new VkCopyDescriptorSet instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

      @Deprecated public static VkCopyDescriptorSet mallocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static VkCopyDescriptorSet callocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static VkCopyDescriptorSet mallocStack(MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static VkCopyDescriptorSet callocStack(MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static VkCopyDescriptorSet.Buffer mallocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static VkCopyDescriptorSet.Buffer callocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • mallocStack

      @Deprecated public static VkCopyDescriptorSet.Buffer mallocStack(int capacity, MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static VkCopyDescriptorSet.Buffer callocStack(int capacity, MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • malloc

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

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

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

      public static VkCopyDescriptorSet.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new VkCopyDescriptorSet.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().
    • nsrcSet

      public static long nsrcSet(long struct)
      Unsafe version of srcSet().
    • nsrcBinding

      public static int nsrcBinding(long struct)
      Unsafe version of srcBinding().
    • nsrcArrayElement

      public static int nsrcArrayElement(long struct)
      Unsafe version of srcArrayElement().
    • ndstSet

      public static long ndstSet(long struct)
      Unsafe version of dstSet().
    • ndstBinding

      public static int ndstBinding(long struct)
      Unsafe version of dstBinding().
    • ndstArrayElement

      public static int ndstArrayElement(long struct)
      Unsafe version of dstArrayElement().
    • ndescriptorCount

      public static int ndescriptorCount(long struct)
      Unsafe version of descriptorCount().
    • 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.
    • nsrcSet

      public static void nsrcSet(long struct, long value)
      Unsafe version of srcSet.
    • nsrcBinding

      public static void nsrcBinding(long struct, int value)
      Unsafe version of srcBinding.
    • nsrcArrayElement

      public static void nsrcArrayElement(long struct, int value)
      Unsafe version of srcArrayElement.
    • ndstSet

      public static void ndstSet(long struct, long value)
      Unsafe version of dstSet.
    • ndstBinding

      public static void ndstBinding(long struct, int value)
      Unsafe version of dstBinding.
    • ndstArrayElement

      public static void ndstArrayElement(long struct, int value)
      Unsafe version of dstArrayElement.
    • ndescriptorCount

      public static void ndescriptorCount(long struct, int value)
      Unsafe version of descriptorCount.