public class VkMemoryBarrier
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The first access scope is limited to access types in the source access mask specified by srcAccessMask.
The second access scope is limited to access types in the destination access mask specified by dstAccessMask.
sType must be STRUCTURE_TYPE_MEMORY_BARRIERpNext must be NULLsrcAccessMask must be a valid combination of VkAccessFlagBits valuesdstAccessMask must be a valid combination of VkAccessFlagBits valuesCmdPipelineBarrier, CmdWaitEvents
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.srcAccessMask – a bitmask of VkAccessFlagBits specifying a source access mask.dstAccessMask – a bitmask of VkAccessFlagBits specifying a destination access mask.
struct VkMemoryBarrier {
VkStructureType sType;
void const * pNext;
VkAccessFlags srcAccessMask;
VkAccessFlags dstAccessMask;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkMemoryBarrier.Buffer
An array of
VkMemoryBarrier structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DSTACCESSMASK
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SRCACCESSMASK
The struct member offsets.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkMemoryBarrier(java.nio.ByteBuffer container)
Creates a
VkMemoryBarrier instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkMemoryBarrier |
calloc()
Returns a new
VkMemoryBarrier instance allocated with memCalloc. |
static VkMemoryBarrier.Buffer |
calloc(int capacity)
Returns a new
VkMemoryBarrier.Buffer instance allocated with memCalloc. |
static VkMemoryBarrier |
callocStack()
Returns a new
VkMemoryBarrier instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkMemoryBarrier.Buffer |
callocStack(int capacity)
Returns a new
VkMemoryBarrier.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkMemoryBarrier.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkMemoryBarrier.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkMemoryBarrier |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkMemoryBarrier instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkMemoryBarrier |
create()
Returns a new
VkMemoryBarrier instance allocated with BufferUtils. |
static VkMemoryBarrier.Buffer |
create(int capacity)
Returns a new
VkMemoryBarrier.Buffer instance allocated with BufferUtils. |
static VkMemoryBarrier |
create(long address)
Returns a new
VkMemoryBarrier instance for the specified memory address. |
static VkMemoryBarrier.Buffer |
create(long address,
int capacity)
Create a
VkMemoryBarrier.Buffer instance at the specified memory. |
static VkMemoryBarrier |
createSafe(long address)
|
static VkMemoryBarrier.Buffer |
createSafe(long address,
int capacity)
|
int |
dstAccessMask()
Returns the value of the
dstAccessMask field. |
VkMemoryBarrier |
dstAccessMask(int value)
Sets the specified value to the
dstAccessMask field. |
static VkMemoryBarrier |
malloc()
Returns a new
VkMemoryBarrier instance allocated with memAlloc. |
static VkMemoryBarrier.Buffer |
malloc(int capacity)
Returns a new
VkMemoryBarrier.Buffer instance allocated with memAlloc. |
static VkMemoryBarrier |
mallocStack()
Returns a new
VkMemoryBarrier instance allocated on the thread-local MemoryStack. |
static VkMemoryBarrier.Buffer |
mallocStack(int capacity)
Returns a new
VkMemoryBarrier.Buffer instance allocated on the thread-local MemoryStack. |
static VkMemoryBarrier.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkMemoryBarrier.Buffer instance allocated on the specified MemoryStack. |
static VkMemoryBarrier |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkMemoryBarrier instance allocated on the specified MemoryStack. |
static int |
ndstAccessMask(long struct)
Unsafe version of
dstAccessMask(). |
static void |
ndstAccessMask(long struct,
int value)
Unsafe version of
dstAccessMask. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsrcAccessMask(long struct)
Unsafe version of
srcAccessMask(). |
static void |
nsrcAccessMask(long struct,
int value)
Unsafe version of
srcAccessMask. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkMemoryBarrier |
pNext(long value)
Sets the specified value to the
pNext field. |
VkMemoryBarrier |
set(int sType,
long pNext,
int srcAccessMask,
int dstAccessMask)
Initializes this struct with the specified values.
|
VkMemoryBarrier |
set(VkMemoryBarrier src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
srcAccessMask()
Returns the value of the
srcAccessMask field. |
VkMemoryBarrier |
srcAccessMask(int value)
Sets the specified value to the
srcAccessMask field. |
int |
sType()
Returns the value of the
sType field. |
VkMemoryBarrier |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int SRCACCESSMASK
public static final int DSTACCESSMASK
public VkMemoryBarrier(java.nio.ByteBuffer container)
VkMemoryBarrier instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public int srcAccessMask()
srcAccessMask field.public int dstAccessMask()
dstAccessMask field.public VkMemoryBarrier sType(int value)
sType field.public VkMemoryBarrier pNext(long value)
pNext field.public VkMemoryBarrier srcAccessMask(int value)
srcAccessMask field.public VkMemoryBarrier dstAccessMask(int value)
dstAccessMask field.public VkMemoryBarrier set(int sType, long pNext, int srcAccessMask, int dstAccessMask)
public VkMemoryBarrier set(VkMemoryBarrier src)
src - the source structpublic static VkMemoryBarrier malloc()
VkMemoryBarrier instance allocated with memAlloc. The instance must be explicitly freed.public static VkMemoryBarrier calloc()
VkMemoryBarrier instance allocated with memCalloc. The instance must be explicitly freed.public static VkMemoryBarrier create()
VkMemoryBarrier instance allocated with BufferUtils.public static VkMemoryBarrier create(long address)
VkMemoryBarrier instance for the specified memory address.@Nullable public static VkMemoryBarrier createSafe(long address)
public static VkMemoryBarrier.Buffer malloc(int capacity)
VkMemoryBarrier.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkMemoryBarrier.Buffer calloc(int capacity)
VkMemoryBarrier.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkMemoryBarrier.Buffer create(int capacity)
VkMemoryBarrier.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkMemoryBarrier.Buffer create(long address, int capacity)
VkMemoryBarrier.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkMemoryBarrier.Buffer createSafe(long address, int capacity)
public static VkMemoryBarrier mallocStack()
VkMemoryBarrier instance allocated on the thread-local MemoryStack.public static VkMemoryBarrier callocStack()
VkMemoryBarrier instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkMemoryBarrier mallocStack(org.lwjgl.system.MemoryStack stack)
VkMemoryBarrier instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkMemoryBarrier callocStack(org.lwjgl.system.MemoryStack stack)
VkMemoryBarrier instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkMemoryBarrier.Buffer mallocStack(int capacity)
VkMemoryBarrier.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkMemoryBarrier.Buffer callocStack(int capacity)
VkMemoryBarrier.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkMemoryBarrier.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkMemoryBarrier.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkMemoryBarrier.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkMemoryBarrier.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nsrcAccessMask(long struct)
srcAccessMask().public static int ndstAccessMask(long struct)
dstAccessMask().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nsrcAccessMask(long struct,
int value)
srcAccessMask.public static void ndstAccessMask(long struct,
int value)
dstAccessMask.Copyright LWJGL. All Rights Reserved. License terms.