Class VkSubpassDependency2

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkSubpassDependency2>
org.lwjgl.vulkan.VkSubpassDependency2
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
Direct Known Subclasses:
VkSubpassDependency2KHR

public class VkSubpassDependency2 extends org.lwjgl.system.Struct<VkSubpassDependency2> implements org.lwjgl.system.NativeResource
Structure specifying a subpass dependency.
Description

Parameters defined by this structure with the same name as those in VkSubpassDependency have the identical effect to those parameters.

viewOffset has the same effect for the described subpass dependency as VkRenderPassMultiviewCreateInfo::pViewOffsets has on each corresponding subpass dependency.

If a VkMemoryBarrier2 is included in the pNext chain, srcStageMask, dstStageMask, srcAccessMask, and dstAccessMask parameters are ignored. The synchronization and access scopes instead are defined by the parameters of VkMemoryBarrier2.

Valid Usage
Valid Usage (Implicit)
  • sType must be STRUCTURE_TYPE_SUBPASS_DEPENDENCY_2
  • pNext must be NULL or a pointer to a valid instance of VkMemoryBarrier2
  • The sType value of each struct in the pNext chain must be unique
  • srcStageMask must be a valid combination of VkPipelineStageFlagBits values
  • dstStageMask must be a valid combination of VkPipelineStageFlagBits values
  • srcAccessMask must be a valid combination of VkAccessFlagBits values
  • dstAccessMask must be a valid combination of VkAccessFlagBits values
  • dependencyFlags must be a valid combination of VkDependencyFlagBits values
See Also

VkRenderPassCreateInfo2

Layout


 struct VkSubpassDependency2 {
     VkStructureType sType();
     void const * pNext();
     uint32_t srcSubpass();
     uint32_t dstSubpass();
     VkPipelineStageFlags srcStageMask();
     VkPipelineStageFlags dstStageMask();
     VkAccessFlags srcAccessMask();
     VkAccessFlags dstAccessMask();
     VkDependencyFlags dependencyFlags();
     int32_t viewOffset();
 }
  • 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.
    • 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.
    • VIEWOFFSET

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

    • VkSubpassDependency2

      public VkSubpassDependency2(ByteBuffer container)
      Creates a VkSubpassDependency2 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()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<VkSubpassDependency2>
    • sType

      public int sType()
      a VkStructureType value identifying this structure.
    • pNext

      public long pNext()
      NULL or a pointer to a structure extending this structure.
    • srcSubpass

      public int srcSubpass()
      the subpass index of the first subpass in the dependency, or SUBPASS_EXTERNAL.
    • dstSubpass

      public int dstSubpass()
      the subpass index of the second subpass in the dependency, or SUBPASS_EXTERNAL.
    • srcStageMask

      public int srcStageMask()
      a bitmask of VkPipelineStageFlagBits specifying the source stage mask.
    • dstStageMask

      public int dstStageMask()
      a bitmask of VkPipelineStageFlagBits specifying the destination stage mask
    • srcAccessMask

      public int srcAccessMask()
      a bitmask of VkAccessFlagBits specifying a source access mask.
    • dstAccessMask

      public int dstAccessMask()
      a bitmask of VkAccessFlagBits specifying a destination access mask.
    • dependencyFlags

      public int dependencyFlags()
      a bitmask of VkDependencyFlagBits.
    • viewOffset

      public int viewOffset()
      controls which views in the source subpass the views in the destination subpass depend on.
    • sType

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

      public VkSubpassDependency2 sType$Default()
      Sets the STRUCTURE_TYPE_SUBPASS_DEPENDENCY_2 value to the sType() field.
    • pNext

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

      public VkSubpassDependency2 pNext(VkMemoryBarrier2 value)
      Prepends the specified VkMemoryBarrier2 value to the pNext chain.
    • pNext

      Prepends the specified VkMemoryBarrier2KHR value to the pNext chain.
    • srcSubpass

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

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

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

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

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

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

      public VkSubpassDependency2 dependencyFlags(int value)
      Sets the specified value to the dependencyFlags() field.
    • viewOffset

      public VkSubpassDependency2 viewOffset(int value)
      Sets the specified value to the viewOffset() field.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static VkSubpassDependency2.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new VkSubpassDependency2.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().
    • 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().
    • nviewOffset

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

      public static void nviewOffset(long struct, int value)
      Unsafe version of viewOffset.