Package org.lwjgl.vulkan
Class VkMemoryBarrier
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkMemoryBarrier
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkMemoryBarrier extends Struct
Khronos Reference Page
Vulkan SpecificationSpecifies a global memory barrier. This type of barrier applies to memory accesses involving all memory objects that exist at the time of its execution.
Valid Usage
sTypemust beSTRUCTURE_TYPE_MEMORY_BARRIERpNextmust beNULLsrcAccessMaskmust be a valid combination ofVkAccessFlagBitsvaluesdstAccessMaskmust be a valid combination ofVkAccessFlagBitsvalues
Member documentation
sType– the type of this structure. Must be:STRUCTURE_TYPE_MEMORY_BARRIERpNext– reserved for use by extensionssrcAccessMask– a bitmask of the classes of memory accesses performed by the first set of commands that will participate in the dependency. One or more of:dstAccessMask– a bitmask of the classes of memory accesses performed by the second set of commands that will participate in the dependency
Layout
struct VkMemoryBarrier { VkStructureType sType; const void * pNext; VkAccessFlags srcAccessMask; VkAccessFlags dstAccessMask; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkMemoryBarrier.BufferAn array ofVkMemoryBarrierstructs.-
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 VkMemoryBarrier(java.nio.ByteBuffer container)Creates aVkMemoryBarrierinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static VkMemoryBarriercalloc()Returns a newVkMemoryBarrierinstance allocated withmemCalloc.static VkMemoryBarrier.Buffercalloc(int capacity)Returns a newVkMemoryBarrier.Bufferinstance allocated withmemCalloc.static VkMemoryBarriercallocStack()Returns a newVkMemoryBarrierinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkMemoryBarrier.BuffercallocStack(int capacity)Returns a newVkMemoryBarrier.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkMemoryBarrier.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkMemoryBarrier.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMemoryBarriercallocStack(MemoryStack stack)Returns a newVkMemoryBarrierinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMemoryBarriercreate()Returns a newVkMemoryBarrierinstance allocated withBufferUtils.static VkMemoryBarrier.Buffercreate(int capacity)Returns a newVkMemoryBarrier.Bufferinstance allocated withBufferUtils.static VkMemoryBarriercreate(long address)Returns a newVkMemoryBarrierinstance for the specified memory address ornullif the address isNULL.static VkMemoryBarrier.Buffercreate(long address, int capacity)Create aVkMemoryBarrier.Bufferinstance at the specified memory.intdstAccessMask()Returns the value of thedstAccessMaskfield.VkMemoryBarrierdstAccessMask(int value)Sets the specified value to thedstAccessMaskfield.static VkMemoryBarriermalloc()Returns a newVkMemoryBarrierinstance allocated withmemAlloc.static VkMemoryBarrier.Buffermalloc(int capacity)Returns a newVkMemoryBarrier.Bufferinstance allocated withmemAlloc.static VkMemoryBarriermallocStack()Returns a newVkMemoryBarrierinstance allocated on the thread-localMemoryStack.static VkMemoryBarrier.BuffermallocStack(int capacity)Returns a newVkMemoryBarrier.Bufferinstance allocated on the thread-localMemoryStack.static VkMemoryBarrier.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkMemoryBarrier.Bufferinstance allocated on the specifiedMemoryStack.static VkMemoryBarriermallocStack(MemoryStack stack)Returns a newVkMemoryBarrierinstance allocated on the specifiedMemoryStack.VkMemoryBarriernset(long struct)Unsafe version ofset.longpNext()Returns the value of thepNextfield.VkMemoryBarrierpNext(long value)Sets the specified value to thepNextfield.VkMemoryBarrierset(int sType, long pNext, int srcAccessMask, int dstAccessMask)Initializes this struct with the specified values.VkMemoryBarrierset(VkMemoryBarrier src)Copies the specified struct data to this struct.intsizeof()Returns thesizeof(struct).intsrcAccessMask()Returns the value of thesrcAccessMaskfield.VkMemoryBarriersrcAccessMask(int value)Sets the specified value to thesrcAccessMaskfield.intsType()Returns the value of thesTypefield.VkMemoryBarriersType(int value)Sets the specified value to thesTypefield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
VkMemoryBarrier
public VkMemoryBarrier(java.nio.ByteBuffer container)
Creates aVkMemoryBarrierinstance 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).
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
srcAccessMask
public int srcAccessMask()
Returns the value of thesrcAccessMaskfield.
-
dstAccessMask
public int dstAccessMask()
Returns the value of thedstAccessMaskfield.
-
sType
public VkMemoryBarrier sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkMemoryBarrier pNext(long value)
Sets the specified value to thepNextfield.
-
srcAccessMask
public VkMemoryBarrier srcAccessMask(int value)
Sets the specified value to thesrcAccessMaskfield.
-
dstAccessMask
public VkMemoryBarrier dstAccessMask(int value)
Sets the specified value to thedstAccessMaskfield.
-
set
public VkMemoryBarrier set(int sType, long pNext, int srcAccessMask, int dstAccessMask)
Initializes this struct with the specified values.
-
nset
public VkMemoryBarrier nset(long struct)
Unsafe version ofset.
-
set
public VkMemoryBarrier set(VkMemoryBarrier src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkMemoryBarrier malloc()
Returns a newVkMemoryBarrierinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkMemoryBarrier calloc()
Returns a newVkMemoryBarrierinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkMemoryBarrier create()
Returns a newVkMemoryBarrierinstance allocated withBufferUtils.
-
create
public static VkMemoryBarrier create(long address)
Returns a newVkMemoryBarrierinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static VkMemoryBarrier.Buffer malloc(int capacity)
Returns a newVkMemoryBarrier.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkMemoryBarrier.Buffer calloc(int capacity)
Returns a newVkMemoryBarrier.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkMemoryBarrier.Buffer create(int capacity)
Returns a newVkMemoryBarrier.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkMemoryBarrier.Buffer create(long address, int capacity)
Create aVkMemoryBarrier.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static VkMemoryBarrier mallocStack()
Returns a newVkMemoryBarrierinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkMemoryBarrier callocStack()
Returns a newVkMemoryBarrierinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkMemoryBarrier mallocStack(MemoryStack stack)
Returns a newVkMemoryBarrierinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkMemoryBarrier callocStack(MemoryStack stack)
Returns a newVkMemoryBarrierinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkMemoryBarrier.Buffer mallocStack(int capacity)
Returns a newVkMemoryBarrier.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkMemoryBarrier.Buffer callocStack(int capacity)
Returns a newVkMemoryBarrier.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkMemoryBarrier.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkMemoryBarrier.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkMemoryBarrier.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkMemoryBarrier.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-