Package org.lwjgl.vulkan
Class VkSubpassDependency2KHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkSubpassDependency2KHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkSubpassDependency2KHR extends org.lwjgl.system.Struct 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 asVkRenderPassMultiviewCreateInfo
::pViewOffsets
has on each corresponding subpass dependency.Valid Usage
- If the geometry shaders feature is not enabled,
srcStageMask
must not containPIPELINE_STAGE_GEOMETRY_SHADER_BIT
- If the geometry shaders feature is not enabled,
dstStageMask
must not containPIPELINE_STAGE_GEOMETRY_SHADER_BIT
- If the tessellation shaders feature is not enabled,
srcStageMask
must not containPIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BIT
orPIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BIT
- If the tessellation shaders feature is not enabled,
dstStageMask
must not containPIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BIT
orPIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BIT
srcSubpass
must be less than or equal todstSubpass
, unless one of them isSUBPASS_EXTERNAL
, to avoid cyclic dependencies and ensure a valid execution ordersrcSubpass
anddstSubpass
must not both be equal toSUBPASS_EXTERNAL
- If
srcSubpass
is equal todstSubpass
and not all of the stages insrcStageMask
anddstStageMask
are framebuffer-space stages, the logically latest pipeline stage insrcStageMask
must be logically earlier than or equal to the logically earliest pipeline stage indstStageMask
- Any access flag included in
srcAccessMask
must be supported by one of the pipeline stages insrcStageMask
, as specified in the table of supported access types - Any access flag included in
dstAccessMask
must be supported by one of the pipeline stages indstStageMask
, as specified in the table of supported access types - If
dependencyFlags
includesDEPENDENCY_VIEW_LOCAL_BIT
,srcSubpass
must not be equal toSUBPASS_EXTERNAL
- If
dependencyFlags
includesDEPENDENCY_VIEW_LOCAL_BIT
,dstSubpass
must not be equal toSUBPASS_EXTERNAL
- If
srcSubpass
equalsdstSubpass
, andsrcStageMask
anddstStageMask
both include a framebuffer-space stage, thendependencyFlags
must includeDEPENDENCY_BY_REGION_BIT
- If
viewOffset
is not equal to 0,srcSubpass
must not be equal todstSubpass
- If
dependencyFlags
does not includeDEPENDENCY_VIEW_LOCAL_BIT
,viewOffset
must be 0 - If
viewOffset
is not 0,srcSubpass
must not be equal todstSubpass
. - If the mesh shaders feature is not enabled,
srcStageMask
must not containPIPELINE_STAGE_MESH_SHADER_BIT_NV
- If the task shaders feature is not enabled,
srcStageMask
must not containPIPELINE_STAGE_TASK_SHADER_BIT_NV
- If the mesh shaders feature is not enabled,
dstStageMask
must not containPIPELINE_STAGE_MESH_SHADER_BIT_NV
- If the task shaders feature is not enabled,
dstStageMask
must not containPIPELINE_STAGE_TASK_SHADER_BIT_NV
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_SUBPASS_DEPENDENCY_2_KHR
srcStageMask
must be a valid combination ofVkPipelineStageFlagBits
valuessrcStageMask
must not be 0dstStageMask
must be a valid combination ofVkPipelineStageFlagBits
valuesdstStageMask
must not be 0srcAccessMask
must be a valid combination ofVkAccessFlagBits
valuesdstAccessMask
must be a valid combination ofVkAccessFlagBits
valuesdependencyFlags
must be a valid combination ofVkDependencyFlagBits
values
See Also
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.srcSubpass
– the subpass index of the first subpass in the dependency, orSUBPASS_EXTERNAL
.dstSubpass
– the subpass index of the second subpass in the dependency, orSUBPASS_EXTERNAL
.srcStageMask
– a bitmask ofVkPipelineStageFlagBits
specifying the source stage mask.dstStageMask
– a bitmask ofVkPipelineStageFlagBits
specifying the destination stage masksrcAccessMask
– a bitmask ofVkAccessFlagBits
specifying a source access mask.dstAccessMask
– a bitmask ofVkAccessFlagBits
specifying a destination access mask.dependencyFlags
– a bitmask ofVkDependencyFlagBits
.viewOffset
– controls which views in the source subpass the views in the destination subpass depend on.
Layout
struct VkSubpassDependency2KHR { VkStructureType sType; void const * pNext; uint32_t srcSubpass; uint32_t dstSubpass; VkPipelineStageFlags srcStageMask; VkPipelineStageFlags dstStageMask; VkAccessFlags srcAccessMask; VkAccessFlags dstAccessMask; VkDependencyFlags dependencyFlags; int32_t viewOffset; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkSubpassDependency2KHR.Buffer
An array ofVkSubpassDependency2KHR
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
DEPENDENCYFLAGS
DSTACCESSMASK
DSTSTAGEMASK
DSTSUBPASS
PNEXTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
SRCACCESSMASK
SRCSTAGEMASK
SRCSUBPASS
STYPE
VIEWOFFSETThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkSubpassDependency2KHR(java.nio.ByteBuffer container)
Creates aVkSubpassDependency2KHR
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkSubpassDependency2KHR
calloc()
Returns a newVkSubpassDependency2KHR
instance allocated withmemCalloc
.static VkSubpassDependency2KHR.Buffer
calloc(int capacity)
Returns a newVkSubpassDependency2KHR.Buffer
instance allocated withmemCalloc
.static VkSubpassDependency2KHR
callocStack()
Returns a newVkSubpassDependency2KHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkSubpassDependency2KHR.Buffer
callocStack(int capacity)
Returns a newVkSubpassDependency2KHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkSubpassDependency2KHR.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDependency2KHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSubpassDependency2KHR
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDependency2KHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSubpassDependency2KHR
create()
Returns a newVkSubpassDependency2KHR
instance allocated withBufferUtils
.static VkSubpassDependency2KHR.Buffer
create(int capacity)
Returns a newVkSubpassDependency2KHR.Buffer
instance allocated withBufferUtils
.static VkSubpassDependency2KHR
create(long address)
Returns a newVkSubpassDependency2KHR
instance for the specified memory address.static VkSubpassDependency2KHR.Buffer
create(long address, int capacity)
Create aVkSubpassDependency2KHR.Buffer
instance at the specified memory.static VkSubpassDependency2KHR
createSafe(long address)
static VkSubpassDependency2KHR.Buffer
createSafe(long address, int capacity)
int
dependencyFlags()
Returns the value of thedependencyFlags
field.VkSubpassDependency2KHR
dependencyFlags(int value)
Sets the specified value to thedependencyFlags
field.int
dstAccessMask()
Returns the value of thedstAccessMask
field.VkSubpassDependency2KHR
dstAccessMask(int value)
Sets the specified value to thedstAccessMask
field.int
dstStageMask()
Returns the value of thedstStageMask
field.VkSubpassDependency2KHR
dstStageMask(int value)
Sets the specified value to thedstStageMask
field.int
dstSubpass()
Returns the value of thedstSubpass
field.VkSubpassDependency2KHR
dstSubpass(int value)
Sets the specified value to thedstSubpass
field.static VkSubpassDependency2KHR
malloc()
Returns a newVkSubpassDependency2KHR
instance allocated withmemAlloc
.static VkSubpassDependency2KHR.Buffer
malloc(int capacity)
Returns a newVkSubpassDependency2KHR.Buffer
instance allocated withmemAlloc
.static VkSubpassDependency2KHR
mallocStack()
Returns a newVkSubpassDependency2KHR
instance allocated on the thread-localMemoryStack
.static VkSubpassDependency2KHR.Buffer
mallocStack(int capacity)
Returns a newVkSubpassDependency2KHR.Buffer
instance allocated on the thread-localMemoryStack
.static VkSubpassDependency2KHR.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDependency2KHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkSubpassDependency2KHR
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDependency2KHR
instance allocated on the specifiedMemoryStack
.static int
ndependencyFlags(long struct)
Unsafe version ofdependencyFlags()
.static void
ndependencyFlags(long struct, int value)
Unsafe version ofdependencyFlags
.static int
ndstAccessMask(long struct)
Unsafe version ofdstAccessMask()
.static void
ndstAccessMask(long struct, int value)
Unsafe version ofdstAccessMask
.static int
ndstStageMask(long struct)
Unsafe version ofdstStageMask()
.static void
ndstStageMask(long struct, int value)
Unsafe version ofdstStageMask
.static int
ndstSubpass(long struct)
Unsafe version ofdstSubpass()
.static void
ndstSubpass(long struct, int value)
Unsafe version ofdstSubpass
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nsrcAccessMask(long struct)
Unsafe version ofsrcAccessMask()
.static void
nsrcAccessMask(long struct, int value)
Unsafe version ofsrcAccessMask
.static int
nsrcStageMask(long struct)
Unsafe version ofsrcStageMask()
.static void
nsrcStageMask(long struct, int value)
Unsafe version ofsrcStageMask
.static int
nsrcSubpass(long struct)
Unsafe version ofsrcSubpass()
.static void
nsrcSubpass(long struct, int value)
Unsafe version ofsrcSubpass
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.static int
nviewOffset(long struct)
Unsafe version ofviewOffset()
.static void
nviewOffset(long struct, int value)
Unsafe version ofviewOffset
.long
pNext()
Returns the value of thepNext
field.VkSubpassDependency2KHR
pNext(long value)
Sets the specified value to thepNext
field.VkSubpassDependency2KHR
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.VkSubpassDependency2KHR
set(VkSubpassDependency2KHR src)
Copies the specified struct data to this struct.int
sizeof()
int
srcAccessMask()
Returns the value of thesrcAccessMask
field.VkSubpassDependency2KHR
srcAccessMask(int value)
Sets the specified value to thesrcAccessMask
field.int
srcStageMask()
Returns the value of thesrcStageMask
field.VkSubpassDependency2KHR
srcStageMask(int value)
Sets the specified value to thesrcStageMask
field.int
srcSubpass()
Returns the value of thesrcSubpass
field.VkSubpassDependency2KHR
srcSubpass(int value)
Sets the specified value to thesrcSubpass
field.int
sType()
Returns the value of thesType
field.VkSubpassDependency2KHR
sType(int value)
Sets the specified value to thesType
field.int
viewOffset()
Returns the value of theviewOffset
field.VkSubpassDependency2KHR
viewOffset(int value)
Sets the specified value to theviewOffset
field.
-
-
-
Constructor Detail
-
VkSubpassDependency2KHR
public VkSubpassDependency2KHR(java.nio.ByteBuffer container)
Creates aVkSubpassDependency2KHR
instance at the current position of the specifiedByteBuffer
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
srcSubpass
public int srcSubpass()
Returns the value of thesrcSubpass
field.
-
dstSubpass
public int dstSubpass()
Returns the value of thedstSubpass
field.
-
srcStageMask
public int srcStageMask()
Returns the value of thesrcStageMask
field.
-
dstStageMask
public int dstStageMask()
Returns the value of thedstStageMask
field.
-
srcAccessMask
public int srcAccessMask()
Returns the value of thesrcAccessMask
field.
-
dstAccessMask
public int dstAccessMask()
Returns the value of thedstAccessMask
field.
-
dependencyFlags
public int dependencyFlags()
Returns the value of thedependencyFlags
field.
-
viewOffset
public int viewOffset()
Returns the value of theviewOffset
field.
-
sType
public VkSubpassDependency2KHR sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkSubpassDependency2KHR pNext(long value)
Sets the specified value to thepNext
field.
-
srcSubpass
public VkSubpassDependency2KHR srcSubpass(int value)
Sets the specified value to thesrcSubpass
field.
-
dstSubpass
public VkSubpassDependency2KHR dstSubpass(int value)
Sets the specified value to thedstSubpass
field.
-
srcStageMask
public VkSubpassDependency2KHR srcStageMask(int value)
Sets the specified value to thesrcStageMask
field.
-
dstStageMask
public VkSubpassDependency2KHR dstStageMask(int value)
Sets the specified value to thedstStageMask
field.
-
srcAccessMask
public VkSubpassDependency2KHR srcAccessMask(int value)
Sets the specified value to thesrcAccessMask
field.
-
dstAccessMask
public VkSubpassDependency2KHR dstAccessMask(int value)
Sets the specified value to thedstAccessMask
field.
-
dependencyFlags
public VkSubpassDependency2KHR dependencyFlags(int value)
Sets the specified value to thedependencyFlags
field.
-
viewOffset
public VkSubpassDependency2KHR viewOffset(int value)
Sets the specified value to theviewOffset
field.
-
set
public VkSubpassDependency2KHR 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
public VkSubpassDependency2KHR set(VkSubpassDependency2KHR src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkSubpassDependency2KHR malloc()
Returns a newVkSubpassDependency2KHR
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkSubpassDependency2KHR calloc()
Returns a newVkSubpassDependency2KHR
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkSubpassDependency2KHR create()
Returns a newVkSubpassDependency2KHR
instance allocated withBufferUtils
.
-
create
public static VkSubpassDependency2KHR create(long address)
Returns a newVkSubpassDependency2KHR
instance for the specified memory address.
-
createSafe
@Nullable public static VkSubpassDependency2KHR createSafe(long address)
-
malloc
public static VkSubpassDependency2KHR.Buffer malloc(int capacity)
Returns a newVkSubpassDependency2KHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkSubpassDependency2KHR.Buffer calloc(int capacity)
Returns a newVkSubpassDependency2KHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkSubpassDependency2KHR.Buffer create(int capacity)
Returns a newVkSubpassDependency2KHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkSubpassDependency2KHR.Buffer create(long address, int capacity)
Create aVkSubpassDependency2KHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkSubpassDependency2KHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkSubpassDependency2KHR mallocStack()
Returns a newVkSubpassDependency2KHR
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkSubpassDependency2KHR callocStack()
Returns a newVkSubpassDependency2KHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkSubpassDependency2KHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDependency2KHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkSubpassDependency2KHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDependency2KHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkSubpassDependency2KHR.Buffer mallocStack(int capacity)
Returns a newVkSubpassDependency2KHR.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkSubpassDependency2KHR.Buffer callocStack(int capacity)
Returns a newVkSubpassDependency2KHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkSubpassDependency2KHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDependency2KHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkSubpassDependency2KHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDependency2KHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType()
.
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext()
.
-
nsrcSubpass
public static int nsrcSubpass(long struct)
Unsafe version ofsrcSubpass()
.
-
ndstSubpass
public static int ndstSubpass(long struct)
Unsafe version ofdstSubpass()
.
-
nsrcStageMask
public static int nsrcStageMask(long struct)
Unsafe version ofsrcStageMask()
.
-
ndstStageMask
public static int ndstStageMask(long struct)
Unsafe version ofdstStageMask()
.
-
nsrcAccessMask
public static int nsrcAccessMask(long struct)
Unsafe version ofsrcAccessMask()
.
-
ndstAccessMask
public static int ndstAccessMask(long struct)
Unsafe version ofdstAccessMask()
.
-
ndependencyFlags
public static int ndependencyFlags(long struct)
Unsafe version ofdependencyFlags()
.
-
nviewOffset
public static int nviewOffset(long struct)
Unsafe version ofviewOffset()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
nsrcSubpass
public static void nsrcSubpass(long struct, int value)
Unsafe version ofsrcSubpass
.
-
ndstSubpass
public static void ndstSubpass(long struct, int value)
Unsafe version ofdstSubpass
.
-
nsrcStageMask
public static void nsrcStageMask(long struct, int value)
Unsafe version ofsrcStageMask
.
-
ndstStageMask
public static void ndstStageMask(long struct, int value)
Unsafe version ofdstStageMask
.
-
nsrcAccessMask
public static void nsrcAccessMask(long struct, int value)
Unsafe version ofsrcAccessMask
.
-
ndstAccessMask
public static void ndstAccessMask(long struct, int value)
Unsafe version ofdstAccessMask
.
-
ndependencyFlags
public static void ndependencyFlags(long struct, int value)
Unsafe version ofdependencyFlags
.
-
nviewOffset
public static void nviewOffset(long struct, int value)
Unsafe version ofviewOffset
.
-
-