Class VkCopyDescriptorSet

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkCopyDescriptorSet extends Struct<VkCopyDescriptorSet> implements NativeResource
Structure specifying a copy descriptor set operation.
Description

If the VkDescriptorSetLayoutBinding for dstBinding is DESCRIPTOR_TYPE_MUTABLE_EXT and srcBinding is not DESCRIPTOR_TYPE_MUTABLE_EXT, the new active descriptor type becomes the descriptor type of srcBinding. If both VkDescriptorSetLayoutBinding for srcBinding and dstBinding are DESCRIPTOR_TYPE_MUTABLE_EXT, the active descriptor type in each source descriptor is copied into the corresponding destination descriptor. The active descriptor type can be different for each source descriptor.

Note

The intention is that copies to and from mutable descriptors is a simple memcpy. Copies between non-mutable and mutable descriptors are expected to require one memcpy per descriptor to handle the difference in size, but this use case with more than one descriptorCount is considered rare.

Valid Usage
Valid Usage (Implicit)
  • sType must be STRUCTURE_TYPE_COPY_DESCRIPTOR_SET
  • pNext must be NULL
  • srcSet must be a valid VkDescriptorSet handle
  • dstSet must be a valid VkDescriptorSet handle
  • Both of dstSet, and srcSet must have been created, allocated, or retrieved from the same VkDevice
See Also

UpdateDescriptorSets

Layout


 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