Package org.lwjgl.vulkan
Class VkSubpassDependency
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkSubpassDependency
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkSubpassDependency extends Struct
Khronos Reference Page
Vulkan SpecificationDescribes dependencies between pairs of subpasses.
Valid Usage
srcStageMaskmust be a valid combination ofVkPipelineStageFlagBitsvaluessrcStageMaskmust not be 0dstStageMaskmust be a valid combination ofVkPipelineStageFlagBitsvaluesdstStageMaskmust not be 0srcAccessMaskmust be a valid combination ofVkAccessFlagBitsvaluesdstAccessMaskmust be a valid combination ofVkAccessFlagBitsvaluesdependencyFlagsmust be a valid combination ofVkDependencyFlagBitsvalues- If the geometry shaders feature is not enabled,
srcStageMaskmust not containPIPELINE_STAGE_GEOMETRY_SHADER_BIT - If the geometry shaders feature is not enabled,
dstStageMaskmust not containPIPELINE_STAGE_GEOMETRY_SHADER_BIT - If the tessellation shaders feature is not enabled,
srcStageMaskmust not containPIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BITorPIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BIT - If the tessellation shaders feature is not enabled,
dstStageMaskmust not containPIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BITorPIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BIT srcSubpassmust be less than or equal todstSubpass, unless one of them isSUBPASS_EXTERNAL, to avoid cyclic dependencies and ensure a valid execution ordersrcSubpassanddstSubpassmust not both be equal toSUBPASS_EXTERNAL
Member documentation
srcSubpass– the subpass index of the producer subpassdstSubpass– the subpass index of the consumer subpasssrcStageMask– a combination ofVkPipelineStageFlagBitsvalues. One or more of:dstStageMask– a combination ofVkPipelineStageFlagBitsvaluessrcAccessMask– a combination ofVkAccessFlagBitsvalues. One or more of:dstAccessMask– a combination ofVkAccessFlagBitsvaluesdependencyFlags– a combination ofVkDependencyFlagBitsvalues. One or more of:DEPENDENCY_BY_REGION_BIT
Layout
struct VkSubpassDependency { uint32_t srcSubpass; uint32_t dstSubpass; VkPipelineStageFlags srcStageMask; VkPipelineStageFlags dstStageMask; VkAccessFlags srcAccessMask; VkAccessFlags dstAccessMask; VkDependencyFlags dependencyFlags; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkSubpassDependency.BufferAn array ofVkSubpassDependencystructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description VkSubpassDependency(java.nio.ByteBuffer container)Creates aVkSubpassDependencyinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static VkSubpassDependencycalloc()Returns a newVkSubpassDependencyinstance allocated withmemCalloc.static VkSubpassDependency.Buffercalloc(int capacity)Returns a newVkSubpassDependency.Bufferinstance allocated withmemCalloc.static VkSubpassDependencycallocStack()Returns a newVkSubpassDependencyinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkSubpassDependency.BuffercallocStack(int capacity)Returns a newVkSubpassDependency.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkSubpassDependency.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkSubpassDependency.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSubpassDependencycallocStack(MemoryStack stack)Returns a newVkSubpassDependencyinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSubpassDependencycreate()Returns a newVkSubpassDependencyinstance allocated withBufferUtils.static VkSubpassDependency.Buffercreate(int capacity)Returns a newVkSubpassDependency.Bufferinstance allocated withBufferUtils.static VkSubpassDependencycreate(long address)Returns a newVkSubpassDependencyinstance for the specified memory address ornullif the address isNULL.static VkSubpassDependency.Buffercreate(long address, int capacity)Create aVkSubpassDependency.Bufferinstance at the specified memory.intdependencyFlags()Returns the value of thedependencyFlagsfield.VkSubpassDependencydependencyFlags(int value)Sets the specified value to thedependencyFlagsfield.intdstAccessMask()Returns the value of thedstAccessMaskfield.VkSubpassDependencydstAccessMask(int value)Sets the specified value to thedstAccessMaskfield.intdstStageMask()Returns the value of thedstStageMaskfield.VkSubpassDependencydstStageMask(int value)Sets the specified value to thedstStageMaskfield.intdstSubpass()Returns the value of thedstSubpassfield.VkSubpassDependencydstSubpass(int value)Sets the specified value to thedstSubpassfield.static VkSubpassDependencymalloc()Returns a newVkSubpassDependencyinstance allocated withmemAlloc.static VkSubpassDependency.Buffermalloc(int capacity)Returns a newVkSubpassDependency.Bufferinstance allocated withmemAlloc.static VkSubpassDependencymallocStack()Returns a newVkSubpassDependencyinstance allocated on the thread-localMemoryStack.static VkSubpassDependency.BuffermallocStack(int capacity)Returns a newVkSubpassDependency.Bufferinstance allocated on the thread-localMemoryStack.static VkSubpassDependency.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkSubpassDependency.Bufferinstance allocated on the specifiedMemoryStack.static VkSubpassDependencymallocStack(MemoryStack stack)Returns a newVkSubpassDependencyinstance allocated on the specifiedMemoryStack.VkSubpassDependencynset(long struct)Unsafe version ofset.VkSubpassDependencyset(int srcSubpass, int dstSubpass, int srcStageMask, int dstStageMask, int srcAccessMask, int dstAccessMask, int dependencyFlags)Initializes this struct with the specified values.VkSubpassDependencyset(VkSubpassDependency src)Copies the specified struct data to this struct.intsizeof()Returns thesizeof(struct).intsrcAccessMask()Returns the value of thesrcAccessMaskfield.VkSubpassDependencysrcAccessMask(int value)Sets the specified value to thesrcAccessMaskfield.intsrcStageMask()Returns the value of thesrcStageMaskfield.VkSubpassDependencysrcStageMask(int value)Sets the specified value to thesrcStageMaskfield.intsrcSubpass()Returns the value of thesrcSubpassfield.VkSubpassDependencysrcSubpass(int value)Sets the specified value to thesrcSubpassfield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
VkSubpassDependency
public VkSubpassDependency(java.nio.ByteBuffer container)
Creates aVkSubpassDependencyinstance at the current position of the specifiedByteBuffercontainer. 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 Detail
-
sizeof
public int sizeof()
Description copied from class:StructReturns thesizeof(struct).
-
srcSubpass
public int srcSubpass()
Returns the value of thesrcSubpassfield.
-
dstSubpass
public int dstSubpass()
Returns the value of thedstSubpassfield.
-
srcStageMask
public int srcStageMask()
Returns the value of thesrcStageMaskfield.
-
dstStageMask
public int dstStageMask()
Returns the value of thedstStageMaskfield.
-
srcAccessMask
public int srcAccessMask()
Returns the value of thesrcAccessMaskfield.
-
dstAccessMask
public int dstAccessMask()
Returns the value of thedstAccessMaskfield.
-
dependencyFlags
public int dependencyFlags()
Returns the value of thedependencyFlagsfield.
-
srcSubpass
public VkSubpassDependency srcSubpass(int value)
Sets the specified value to thesrcSubpassfield.
-
dstSubpass
public VkSubpassDependency dstSubpass(int value)
Sets the specified value to thedstSubpassfield.
-
srcStageMask
public VkSubpassDependency srcStageMask(int value)
Sets the specified value to thesrcStageMaskfield.
-
dstStageMask
public VkSubpassDependency dstStageMask(int value)
Sets the specified value to thedstStageMaskfield.
-
srcAccessMask
public VkSubpassDependency srcAccessMask(int value)
Sets the specified value to thesrcAccessMaskfield.
-
dstAccessMask
public VkSubpassDependency dstAccessMask(int value)
Sets the specified value to thedstAccessMaskfield.
-
dependencyFlags
public VkSubpassDependency dependencyFlags(int value)
Sets the specified value to thedependencyFlagsfield.
-
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.
-
nset
public VkSubpassDependency nset(long struct)
Unsafe version ofset.
-
set
public VkSubpassDependency set(VkSubpassDependency src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkSubpassDependency malloc()
Returns a newVkSubpassDependencyinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkSubpassDependency calloc()
Returns a newVkSubpassDependencyinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkSubpassDependency create()
Returns a newVkSubpassDependencyinstance allocated withBufferUtils.
-
create
public static VkSubpassDependency create(long address)
Returns a newVkSubpassDependencyinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static VkSubpassDependency.Buffer malloc(int capacity)
Returns a newVkSubpassDependency.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkSubpassDependency.Buffer calloc(int capacity)
Returns a newVkSubpassDependency.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkSubpassDependency.Buffer create(int capacity)
Returns a newVkSubpassDependency.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkSubpassDependency.Buffer create(long address, int capacity)
Create aVkSubpassDependency.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static VkSubpassDependency mallocStack()
Returns a newVkSubpassDependencyinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkSubpassDependency callocStack()
Returns a newVkSubpassDependencyinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkSubpassDependency mallocStack(MemoryStack stack)
Returns a newVkSubpassDependencyinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkSubpassDependency callocStack(MemoryStack stack)
Returns a newVkSubpassDependencyinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkSubpassDependency.Buffer mallocStack(int capacity)
Returns a newVkSubpassDependency.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkSubpassDependency.Buffer callocStack(int capacity)
Returns a newVkSubpassDependency.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkSubpassDependency.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkSubpassDependency.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkSubpassDependency.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkSubpassDependency.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-