Package org.lwjgl.vulkan
Class VkDependencyInfoKHR
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkDependencyInfo>
org.lwjgl.vulkan.VkDependencyInfo
org.lwjgl.vulkan.VkDependencyInfoKHR
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct VkDependencyInfoKHR {
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
Fields inherited from class org.lwjgl.vulkan.VkDependencyInfo
ALIGNOF, BUFFERMEMORYBARRIERCOUNT, DEPENDENCYFLAGS, IMAGEMEMORYBARRIERCOUNT, MEMORYBARRIERCOUNT, PBUFFERMEMORYBARRIERS, PIMAGEMEMORYBARRIERS, PMEMORYBARRIERS, PNEXT, SIZEOF, STYPE
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVkDependencyInfoKHR
(ByteBuffer container) Creates aVkDependencyInfoKHR
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkDependencyInfoKHR
calloc()
Returns a newVkDependencyInfoKHR
instance allocated withmemCalloc
.static VkDependencyInfoKHR.Buffer
calloc
(int capacity) Returns a newVkDependencyInfoKHR.Buffer
instance allocated withmemCalloc
.static VkDependencyInfoKHR.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVkDependencyInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDependencyInfoKHR
calloc
(MemoryStack stack) Returns a newVkDependencyInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDependencyInfoKHR
create()
Returns a newVkDependencyInfoKHR
instance allocated withBufferUtils
.static VkDependencyInfoKHR.Buffer
create
(int capacity) Returns a newVkDependencyInfoKHR.Buffer
instance allocated withBufferUtils
.static VkDependencyInfoKHR
create
(long address) Returns a newVkDependencyInfoKHR
instance for the specified memory address.static VkDependencyInfoKHR.Buffer
create
(long address, int capacity) Create aVkDependencyInfoKHR.Buffer
instance at the specified memory.static @Nullable VkDependencyInfoKHR
createSafe
(long address) static @Nullable VkDependencyInfoKHR.Buffer
createSafe
(long address, int capacity) dependencyFlags
(int value) Sets the specified value to thedependencyFlags
field.static VkDependencyInfoKHR
malloc()
Returns a newVkDependencyInfoKHR
instance allocated withmemAlloc
.static VkDependencyInfoKHR.Buffer
malloc
(int capacity) Returns a newVkDependencyInfoKHR.Buffer
instance allocated withmemAlloc
.static VkDependencyInfoKHR.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVkDependencyInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkDependencyInfoKHR
malloc
(MemoryStack stack) Returns a newVkDependencyInfoKHR
instance allocated on the specifiedMemoryStack
.pBufferMemoryBarriers
(@Nullable VkBufferMemoryBarrier2.Buffer value) Sets the address of the specifiedVkBufferMemoryBarrier2.Buffer
to thepBufferMemoryBarriers
field.pImageMemoryBarriers
(@Nullable VkImageMemoryBarrier2.Buffer value) Sets the address of the specifiedVkImageMemoryBarrier2.Buffer
to thepImageMemoryBarriers
field.pMemoryBarriers
(@Nullable VkMemoryBarrier2.Buffer value) Sets the address of the specifiedVkMemoryBarrier2.Buffer
to thepMemoryBarriers
field.pNext
(long value) Sets the specified value to thepNext
field.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
(VkDependencyInfoKHR src) Copies the specified struct data to this struct.sType
(int value) Sets the specified value to thesType
field.Sets theSTRUCTURE_TYPE_DEPENDENCY_INFO
value to thesType
field.Methods inherited from class org.lwjgl.vulkan.VkDependencyInfo
bufferMemoryBarrierCount, dependencyFlags, imageMemoryBarrierCount, memoryBarrierCount, nbufferMemoryBarrierCount, nbufferMemoryBarrierCount, ndependencyFlags, ndependencyFlags, nimageMemoryBarrierCount, nimageMemoryBarrierCount, nmemoryBarrierCount, nmemoryBarrierCount, npBufferMemoryBarriers, npBufferMemoryBarriers, npImageMemoryBarriers, npImageMemoryBarriers, npMemoryBarriers, npMemoryBarriers, npNext, npNext, nsType, nsType, pBufferMemoryBarriers, pImageMemoryBarriers, pMemoryBarriers, pNext, pNext, pNext, set, sizeof, sType, validate
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
VkDependencyInfoKHR
Creates aVkDependencyInfoKHR
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
-
sType
Sets the specified value to thesType
field.- Overrides:
sType
in classVkDependencyInfo
-
sType$Default
Sets theSTRUCTURE_TYPE_DEPENDENCY_INFO
value to thesType
field.- Overrides:
sType$Default
in classVkDependencyInfo
-
pNext
Sets the specified value to thepNext
field.- Overrides:
pNext
in classVkDependencyInfo
-
dependencyFlags
Sets the specified value to thedependencyFlags
field.- Overrides:
dependencyFlags
in classVkDependencyInfo
-
pMemoryBarriers
Sets the address of the specifiedVkMemoryBarrier2.Buffer
to thepMemoryBarriers
field.- Overrides:
pMemoryBarriers
in classVkDependencyInfo
-
pBufferMemoryBarriers
Sets the address of the specifiedVkBufferMemoryBarrier2.Buffer
to thepBufferMemoryBarriers
field.- Overrides:
pBufferMemoryBarriers
in classVkDependencyInfo
-
pImageMemoryBarriers
Sets the address of the specifiedVkImageMemoryBarrier2.Buffer
to thepImageMemoryBarriers
field.- Overrides:
pImageMemoryBarriers
in classVkDependencyInfo
-
set
public VkDependencyInfoKHR 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.- Overrides:
set
in classVkDependencyInfo
-
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkDependencyInfoKHR
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkDependencyInfoKHR
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkDependencyInfoKHR
instance allocated withBufferUtils
. -
create
Returns a newVkDependencyInfoKHR
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkDependencyInfoKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkDependencyInfoKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkDependencyInfoKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkDependencyInfoKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVkDependencyInfoKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkDependencyInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkDependencyInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkDependencyInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-