Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkMemoryBarrier2

extends Struct<VkMemoryBarrier2>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Known Direct Subclasses
org.lwjgl.vulkan.VkMemoryBarrier2KHR
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Structure specifying a global memory barrier.
Description

This structure defines a memory dependency affecting all device memory.

The first synchronization scope and access scope described by this structure include only operations and memory accesses specified by srcStageMask and srcAccessMask.

The second synchronization scope and access scope described by this structure include only operations and memory accesses specified by dstStageMask and dstAccessMask.

Valid Usage
Valid Usage (Implicit)
See Also

VkDependencyInfo

Layout


struct VkMemoryBarrier2 {
    VkStructureType sType;
    void const * pNext;
    VkPipelineStageFlags2 srcStageMask;
    VkAccessFlags2 srcAccessMask;
    VkPipelineStageFlags2 dstStageMask;
    VkAccessFlags2 dstAccessMask;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
DSTACCESSMASK

The struct member offsets.

public static final int
DSTSTAGEMASK

The struct member offsets.

public static final int
PNEXT

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
SRCACCESSMASK

The struct member offsets.

public static final int
SRCSTAGEMASK

The struct member offsets.

public static final int
STYPE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
VkMemoryBarrier2(long address, ByteBuffer container)

public
VkMemoryBarrier2(ByteBuffer container)

Creates a VkMemoryBarrier2 instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static VkMemoryBarrier2
calloc()

Returns a new VkMemoryBarrier2 instance allocated with memCalloc.

public static VkMemoryBarrier2.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new VkMemoryBarrier2.Buffer instance allocated with memCalloc.

public static VkMemoryBarrier2
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkMemoryBarrier2 instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkMemoryBarrier2.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkMemoryBarrier2.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

protected VkMemoryBarrier2
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VkMemoryBarrier2
create()

Returns a new VkMemoryBarrier2 instance allocated with BufferUtils.

public static VkMemoryBarrier2
create(long address)

Returns a new VkMemoryBarrier2 instance for the specified memory address.

public static VkMemoryBarrier2.Buffer
create(int
the buffer capacity
capacity
)

Returns a new VkMemoryBarrier2.Buffer instance allocated with BufferUtils.

public static VkMemoryBarrier2.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VkMemoryBarrier2.Buffer instance at the specified memory.

public static VkMemoryBarrier2
createSafe(long address)

Like create, but returns null if address is NULL.

public static VkMemoryBarrier2.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public long
dstAccessMask()

a VkAccessFlags2 mask of access flags to be included in the second access scope.

public VkMemoryBarrier2
dstAccessMask(long value)

Sets the specified value to the dstAccessMask field.

public long
dstStageMask()

a VkPipelineStageFlags2 mask of pipeline stages to be included in the second synchronization scope.

public VkMemoryBarrier2
dstStageMask(long value)

Sets the specified value to the dstStageMask field.

public static VkMemoryBarrier2
malloc()

Returns a new VkMemoryBarrier2 instance allocated with memAlloc.

public static VkMemoryBarrier2.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new VkMemoryBarrier2.Buffer instance allocated with memAlloc.

public static VkMemoryBarrier2
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkMemoryBarrier2 instance allocated on the specified MemoryStack.

public static VkMemoryBarrier2.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkMemoryBarrier2.Buffer instance allocated on the specified MemoryStack.

public static long
ndstAccessMask(long struct)

Unsafe version of dstAccessMask.

public static void
ndstAccessMask(long struct, long value)

Unsafe version of dstAccessMask.

public static long
ndstStageMask(long struct)

Unsafe version of dstStageMask.

public static void
ndstStageMask(long struct, long value)

Unsafe version of dstStageMask.

public static long
npNext(long struct)

Unsafe version of pNext.

public static void
npNext(long struct, long value)

Unsafe version of pNext.

public static long
nsrcAccessMask(long struct)

Unsafe version of srcAccessMask.

public static void
nsrcAccessMask(long struct, long value)

Unsafe version of srcAccessMask.

public static long
nsrcStageMask(long struct)

Unsafe version of srcStageMask.

public static void
nsrcStageMask(long struct, long value)

Unsafe version of srcStageMask.

public static int
nsType(long struct)

Unsafe version of sType.

public static void
nsType(long struct, int value)

Unsafe version of sType.

public long
pNext()

NULL or a pointer to a structure extending this structure.

public VkMemoryBarrier2
pNext(long value)

Sets the specified value to the pNext field.

public VkMemoryBarrier2
set(int sType, long pNext, long srcStageMask, long srcAccessMask, long dstStageMask, long dstAccessMask)

Initializes this struct with the specified values.

public VkMemoryBarrier2

Returns:

this struct
set
(VkMemoryBarrier2
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public long
srcAccessMask()

a VkAccessFlags2 mask of access flags to be included in the first access scope.

public VkMemoryBarrier2
srcAccessMask(long value)

Sets the specified value to the srcAccessMask field.

public long
srcStageMask()

a VkPipelineStageFlags2 mask of pipeline stages to be included in the first synchronization scope.

public VkMemoryBarrier2
srcStageMask(long value)

Sets the specified value to the srcStageMask field.

public int
sType()

a VkStructureType value identifying this structure.

public VkMemoryBarrier2
sType(int value)

Sets the specified value to the sType field.

public VkMemoryBarrier2
sType$Default()

Sets the STRUCTURE_TYPE_MEMORY_BARRIER_2 value to the sType field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate