Class VkSubpassDependency

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkSubpassDependency extends Struct<VkSubpassDependency> implements NativeResource

 struct VkSubpassDependency {
     uint32_t srcSubpass;
     uint32_t dstSubpass;
     VkPipelineStageFlags srcStageMask;
     VkPipelineStageFlags dstStageMask;
     VkAccessFlags srcAccessMask;
     VkAccessFlags dstAccessMask;
     VkDependencyFlags dependencyFlags;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • SRCSUBPASS

      public static final int SRCSUBPASS
      The struct member offsets.
    • DSTSUBPASS

      public static final int DSTSUBPASS
      The struct member offsets.
    • SRCSTAGEMASK

      public static final int SRCSTAGEMASK
      The struct member offsets.
    • DSTSTAGEMASK

      public static final int DSTSTAGEMASK
      The struct member offsets.
    • SRCACCESSMASK

      public static final int SRCACCESSMASK
      The struct member offsets.
    • DSTACCESSMASK

      public static final int DSTACCESSMASK
      The struct member offsets.
    • DEPENDENCYFLAGS

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

    • VkSubpassDependency

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

      public int srcSubpass()
      Returns:
      the value of the srcSubpass field.
    • dstSubpass

      public int dstSubpass()
      Returns:
      the value of the dstSubpass field.
    • srcStageMask

      public int srcStageMask()
      Returns:
      the value of the srcStageMask field.
    • dstStageMask

      public int dstStageMask()
      Returns:
      the value of the dstStageMask field.
    • srcAccessMask

      public int srcAccessMask()
      Returns:
      the value of the srcAccessMask field.
    • dstAccessMask

      public int dstAccessMask()
      Returns:
      the value of the dstAccessMask field.
    • dependencyFlags

      public int dependencyFlags()
      Returns:
      the value of the dependencyFlags field.
    • srcSubpass

      public VkSubpassDependency srcSubpass(int value)
      Sets the specified value to the srcSubpass field.
    • dstSubpass

      public VkSubpassDependency dstSubpass(int value)
      Sets the specified value to the dstSubpass field.
    • srcStageMask

      public VkSubpassDependency srcStageMask(int value)
      Sets the specified value to the srcStageMask field.
    • dstStageMask

      public VkSubpassDependency dstStageMask(int value)
      Sets the specified value to the dstStageMask field.
    • srcAccessMask

      public VkSubpassDependency srcAccessMask(int value)
      Sets the specified value to the srcAccessMask field.
    • dstAccessMask

      public VkSubpassDependency dstAccessMask(int value)
      Sets the specified value to the dstAccessMask field.
    • dependencyFlags

      public VkSubpassDependency dependencyFlags(int value)
      Sets the specified value to the dependencyFlags field.
    • set

      public VkSubpassDependency set(int srcSubpass, int dstSubpass, int srcStageMask, int dstStageMask, int srcAccessMask, int dstAccessMask, int dependencyFlags)
      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 VkSubpassDependency malloc()
      Returns a new VkSubpassDependency instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nsrcSubpass(long struct)
      Unsafe version of srcSubpass().
    • ndstSubpass

      public static int ndstSubpass(long struct)
      Unsafe version of dstSubpass().
    • nsrcStageMask

      public static int nsrcStageMask(long struct)
      Unsafe version of srcStageMask().
    • ndstStageMask

      public static int ndstStageMask(long struct)
      Unsafe version of dstStageMask().
    • nsrcAccessMask

      public static int nsrcAccessMask(long struct)
      Unsafe version of srcAccessMask().
    • ndstAccessMask

      public static int ndstAccessMask(long struct)
      Unsafe version of dstAccessMask().
    • ndependencyFlags

      public static int ndependencyFlags(long struct)
      Unsafe version of dependencyFlags().
    • nsrcSubpass

      public static void nsrcSubpass(long struct, int value)
      Unsafe version of srcSubpass.
    • ndstSubpass

      public static void ndstSubpass(long struct, int value)
      Unsafe version of dstSubpass.
    • nsrcStageMask

      public static void nsrcStageMask(long struct, int value)
      Unsafe version of srcStageMask.
    • ndstStageMask

      public static void ndstStageMask(long struct, int value)
      Unsafe version of dstStageMask.
    • nsrcAccessMask

      public static void nsrcAccessMask(long struct, int value)
      Unsafe version of srcAccessMask.
    • ndstAccessMask

      public static void ndstAccessMask(long struct, int value)
      Unsafe version of dstAccessMask.
    • ndependencyFlags

      public static void ndependencyFlags(long struct, int value)
      Unsafe version of dependencyFlags.