Package org.lwjgl.vulkan
Class VkDependencyInfo
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
- Direct Known Subclasses:
VkDependencyInfoKHR
struct VkDependencyInfo {
VkStructureType sType;
void const * pNext;
VkDependencyFlags dependencyFlags;
uint32_t memoryBarrierCount;
{@link VkMemoryBarrier2 VkMemoryBarrier2} const * pMemoryBarriers;
uint32_t bufferMemoryBarrierCount;
{@link VkBufferMemoryBarrier2 VkBufferMemoryBarrier2} const * pBufferMemoryBarriers;
uint32_t imageMemoryBarrierCount;
{@link VkImageMemoryBarrier2 VkImageMemoryBarrier2} const * pImageMemoryBarriers;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVkDependencyInfo
(ByteBuffer container) Creates aVkDependencyInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
static VkDependencyInfo
calloc()
Returns a newVkDependencyInfo
instance allocated withmemCalloc
.static VkDependencyInfo.Buffer
calloc
(int capacity) Returns a newVkDependencyInfo.Buffer
instance allocated withmemCalloc
.static VkDependencyInfo.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVkDependencyInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDependencyInfo
calloc
(MemoryStack stack) Returns a newVkDependencyInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDependencyInfo
create()
Returns a newVkDependencyInfo
instance allocated withBufferUtils
.static VkDependencyInfo.Buffer
create
(int capacity) Returns a newVkDependencyInfo.Buffer
instance allocated withBufferUtils
.static VkDependencyInfo
create
(long address) Returns a newVkDependencyInfo
instance for the specified memory address.static VkDependencyInfo.Buffer
create
(long address, int capacity) Create aVkDependencyInfo.Buffer
instance at the specified memory.static @Nullable VkDependencyInfo
createSafe
(long address) static @Nullable VkDependencyInfo.Buffer
createSafe
(long address, int capacity) int
dependencyFlags
(int value) Sets the specified value to thedependencyFlags
field.int
static VkDependencyInfo
malloc()
Returns a newVkDependencyInfo
instance allocated withmemAlloc
.static VkDependencyInfo.Buffer
malloc
(int capacity) Returns a newVkDependencyInfo.Buffer
instance allocated withmemAlloc
.static VkDependencyInfo.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVkDependencyInfo.Buffer
instance allocated on the specifiedMemoryStack
.static VkDependencyInfo
malloc
(MemoryStack stack) Returns a newVkDependencyInfo
instance allocated on the specifiedMemoryStack
.int
static int
nbufferMemoryBarrierCount
(long struct) Unsafe version ofbufferMemoryBarrierCount()
.static void
nbufferMemoryBarrierCount
(long struct, int value) Sets the specified value to thebufferMemoryBarrierCount
field of the specifiedstruct
.static int
ndependencyFlags
(long struct) Unsafe version ofdependencyFlags()
.static void
ndependencyFlags
(long struct, int value) Unsafe version ofdependencyFlags
.static int
nimageMemoryBarrierCount
(long struct) Unsafe version ofimageMemoryBarrierCount()
.static void
nimageMemoryBarrierCount
(long struct, int value) Sets the specified value to theimageMemoryBarrierCount
field of the specifiedstruct
.static int
nmemoryBarrierCount
(long struct) Unsafe version ofmemoryBarrierCount()
.static void
nmemoryBarrierCount
(long struct, int value) Sets the specified value to thememoryBarrierCount
field of the specifiedstruct
.static @Nullable VkBufferMemoryBarrier2.Buffer
npBufferMemoryBarriers
(long struct) Unsafe version ofpBufferMemoryBarriers()
.static void
npBufferMemoryBarriers
(long struct, @Nullable VkBufferMemoryBarrier2.Buffer value) Unsafe version ofpBufferMemoryBarriers
.static @Nullable VkImageMemoryBarrier2.Buffer
npImageMemoryBarriers
(long struct) Unsafe version ofpImageMemoryBarriers()
.static void
npImageMemoryBarriers
(long struct, @Nullable VkImageMemoryBarrier2.Buffer value) Unsafe version ofpImageMemoryBarriers
.static @Nullable VkMemoryBarrier2.Buffer
npMemoryBarriers
(long struct) Unsafe version ofpMemoryBarriers()
.static void
npMemoryBarriers
(long struct, @Nullable VkMemoryBarrier2.Buffer value) Unsafe version ofpMemoryBarriers
.static long
npNext
(long struct) Unsafe version ofpNext()
.static void
npNext
(long struct, long value) Unsafe version ofpNext
.static int
nsType
(long struct) Unsafe version ofsType()
.static void
nsType
(long struct, int value) Unsafe version ofsType
.@Nullable VkBufferMemoryBarrier2.Buffer
pBufferMemoryBarriers
(@Nullable VkBufferMemoryBarrier2.Buffer value) Sets the address of the specifiedVkBufferMemoryBarrier2.Buffer
to thepBufferMemoryBarriers
field.@Nullable VkImageMemoryBarrier2.Buffer
pImageMemoryBarriers
(@Nullable VkImageMemoryBarrier2.Buffer value) Sets the address of the specifiedVkImageMemoryBarrier2.Buffer
to thepImageMemoryBarriers
field.@Nullable VkMemoryBarrier2.Buffer
pMemoryBarriers
(@Nullable VkMemoryBarrier2.Buffer value) Sets the address of the specifiedVkMemoryBarrier2.Buffer
to thepMemoryBarriers
field.long
pNext()
pNext
(long value) Sets the specified value to thepNext
field.pNext
(VkTensorDependencyInfoARM value) Prepends the specifiedVkTensorDependencyInfoARM
value to thepNext
chain.pNext
(VkTensorMemoryBarrierARM value) Prepends the specifiedVkTensorMemoryBarrierARM
value to thepNext
chain.set
(int sType, long pNext, int dependencyFlags, @Nullable VkMemoryBarrier2.Buffer pMemoryBarriers, @Nullable VkBufferMemoryBarrier2.Buffer pBufferMemoryBarriers, @Nullable VkImageMemoryBarrier2.Buffer pImageMemoryBarriers) Initializes this struct with the specified values.set
(VkDependencyInfo src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
sType()
sType
(int value) Sets the specified value to thesType
field.Sets theSTRUCTURE_TYPE_DEPENDENCY_INFO
value to thesType
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
DEPENDENCYFLAGS
public static final int DEPENDENCYFLAGSThe struct member offsets. -
MEMORYBARRIERCOUNT
public static final int MEMORYBARRIERCOUNTThe struct member offsets. -
PMEMORYBARRIERS
public static final int PMEMORYBARRIERSThe struct member offsets. -
BUFFERMEMORYBARRIERCOUNT
public static final int BUFFERMEMORYBARRIERCOUNTThe struct member offsets. -
PBUFFERMEMORYBARRIERS
public static final int PBUFFERMEMORYBARRIERSThe struct member offsets. -
IMAGEMEMORYBARRIERCOUNT
public static final int IMAGEMEMORYBARRIERCOUNTThe struct member offsets. -
PIMAGEMEMORYBARRIERS
public static final int PIMAGEMEMORYBARRIERSThe struct member offsets.
-
-
Constructor Details
-
VkDependencyInfo
Creates aVkDependencyInfo
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkDependencyInfo>
-
sType
public int sType()- Returns:
- the value of the
sType
field.
-
pNext
public long pNext()- Returns:
- the value of the
pNext
field.
-
dependencyFlags
public int dependencyFlags()- Returns:
- the value of the
dependencyFlags
field.
-
memoryBarrierCount
public int memoryBarrierCount()- Returns:
- the value of the
memoryBarrierCount
field.
-
pMemoryBarriers
- Returns:
- a
VkMemoryBarrier2.Buffer
view of the struct array pointed to by thepMemoryBarriers
field.
-
bufferMemoryBarrierCount
public int bufferMemoryBarrierCount()- Returns:
- the value of the
bufferMemoryBarrierCount
field.
-
pBufferMemoryBarriers
- Returns:
- a
VkBufferMemoryBarrier2.Buffer
view of the struct array pointed to by thepBufferMemoryBarriers
field.
-
imageMemoryBarrierCount
public int imageMemoryBarrierCount()- Returns:
- the value of the
imageMemoryBarrierCount
field.
-
pImageMemoryBarriers
- Returns:
- a
VkImageMemoryBarrier2.Buffer
view of the struct array pointed to by thepImageMemoryBarriers
field.
-
sType
Sets the specified value to thesType
field. -
sType$Default
Sets theSTRUCTURE_TYPE_DEPENDENCY_INFO
value to thesType
field. -
pNext
Sets the specified value to thepNext
field. -
pNext
Prepends the specifiedVkTensorDependencyInfoARM
value to thepNext
chain. -
pNext
Prepends the specifiedVkTensorMemoryBarrierARM
value to thepNext
chain. -
dependencyFlags
Sets the specified value to thedependencyFlags
field. -
pMemoryBarriers
Sets the address of the specifiedVkMemoryBarrier2.Buffer
to thepMemoryBarriers
field. -
pBufferMemoryBarriers
Sets the address of the specifiedVkBufferMemoryBarrier2.Buffer
to thepBufferMemoryBarriers
field. -
pImageMemoryBarriers
Sets the address of the specifiedVkImageMemoryBarrier2.Buffer
to thepImageMemoryBarriers
field. -
set
public VkDependencyInfo set(int sType, long pNext, int dependencyFlags, @Nullable VkMemoryBarrier2.Buffer pMemoryBarriers, @Nullable VkBufferMemoryBarrier2.Buffer pBufferMemoryBarriers, @Nullable VkImageMemoryBarrier2.Buffer pImageMemoryBarriers) 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
Returns a newVkDependencyInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkDependencyInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkDependencyInfo
instance allocated withBufferUtils
. -
create
Returns a newVkDependencyInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkDependencyInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkDependencyInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkDependencyInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkDependencyInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVkDependencyInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkDependencyInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkDependencyInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkDependencyInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nsType
public static int nsType(long struct) Unsafe version ofsType()
. -
npNext
public static long npNext(long struct) Unsafe version ofpNext()
. -
ndependencyFlags
public static int ndependencyFlags(long struct) Unsafe version ofdependencyFlags()
. -
nmemoryBarrierCount
public static int nmemoryBarrierCount(long struct) Unsafe version ofmemoryBarrierCount()
. -
npMemoryBarriers
Unsafe version ofpMemoryBarriers()
. -
nbufferMemoryBarrierCount
public static int nbufferMemoryBarrierCount(long struct) Unsafe version ofbufferMemoryBarrierCount()
. -
npBufferMemoryBarriers
Unsafe version ofpBufferMemoryBarriers()
. -
nimageMemoryBarrierCount
public static int nimageMemoryBarrierCount(long struct) Unsafe version ofimageMemoryBarrierCount()
. -
npImageMemoryBarriers
Unsafe version ofpImageMemoryBarriers()
. -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType
. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext
. -
ndependencyFlags
public static void ndependencyFlags(long struct, int value) Unsafe version ofdependencyFlags
. -
nmemoryBarrierCount
public static void nmemoryBarrierCount(long struct, int value) Sets the specified value to thememoryBarrierCount
field of the specifiedstruct
. -
npMemoryBarriers
Unsafe version ofpMemoryBarriers
. -
nbufferMemoryBarrierCount
public static void nbufferMemoryBarrierCount(long struct, int value) Sets the specified value to thebufferMemoryBarrierCount
field of the specifiedstruct
. -
npBufferMemoryBarriers
public static void npBufferMemoryBarriers(long struct, @Nullable VkBufferMemoryBarrier2.Buffer value) Unsafe version ofpBufferMemoryBarriers
. -
nimageMemoryBarrierCount
public static void nimageMemoryBarrierCount(long struct, int value) Sets the specified value to theimageMemoryBarrierCount
field of the specifiedstruct
. -
npImageMemoryBarriers
Unsafe version ofpImageMemoryBarriers
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-