Package org.lwjgl.vulkan
Class VkMemoryBarrier2KHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkMemoryBarrier2
-
- org.lwjgl.vulkan.VkMemoryBarrier2KHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkMemoryBarrier2KHR extends VkMemoryBarrier2
SeeVkMemoryBarrier2.Layout
struct VkMemoryBarrier2KHR { VkStructureType sType; void const * pNext; VkPipelineStageFlags2 srcStageMask; VkAccessFlags2 srcAccessMask; VkPipelineStageFlags2 dstStageMask; VkAccessFlags2 dstAccessMask; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkMemoryBarrier2KHR.BufferAn array ofVkMemoryBarrier2KHRstructs.
-
Field Summary
-
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Fields inherited from class org.lwjgl.vulkan.VkMemoryBarrier2
ALIGNOF, DSTACCESSMASK, DSTSTAGEMASK, PNEXT, SIZEOF, SRCACCESSMASK, SRCSTAGEMASK, STYPE
-
-
Constructor Summary
Constructors Constructor Description VkMemoryBarrier2KHR(java.nio.ByteBuffer container)Creates aVkMemoryBarrier2KHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkMemoryBarrier2KHRcalloc()Returns a newVkMemoryBarrier2KHRinstance allocated withmemCalloc.static VkMemoryBarrier2KHR.Buffercalloc(int capacity)Returns a newVkMemoryBarrier2KHR.Bufferinstance allocated withmemCalloc.static VkMemoryBarrier2KHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkMemoryBarrier2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMemoryBarrier2KHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkMemoryBarrier2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMemoryBarrier2KHRcreate()Returns a newVkMemoryBarrier2KHRinstance allocated withBufferUtils.static VkMemoryBarrier2KHR.Buffercreate(int capacity)Returns a newVkMemoryBarrier2KHR.Bufferinstance allocated withBufferUtils.static VkMemoryBarrier2KHRcreate(long address)Returns a newVkMemoryBarrier2KHRinstance for the specified memory address.static VkMemoryBarrier2KHR.Buffercreate(long address, int capacity)Create aVkMemoryBarrier2KHR.Bufferinstance at the specified memory.static VkMemoryBarrier2KHRcreateSafe(long address)static VkMemoryBarrier2KHR.BuffercreateSafe(long address, int capacity)VkMemoryBarrier2KHRdstAccessMask(long value)Sets the specified value to thedstAccessMaskfield.VkMemoryBarrier2KHRdstStageMask(long value)Sets the specified value to thedstStageMaskfield.static VkMemoryBarrier2KHRmalloc()Returns a newVkMemoryBarrier2KHRinstance allocated withmemAlloc.static VkMemoryBarrier2KHR.Buffermalloc(int capacity)Returns a newVkMemoryBarrier2KHR.Bufferinstance allocated withmemAlloc.static VkMemoryBarrier2KHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkMemoryBarrier2KHR.Bufferinstance allocated on the specifiedMemoryStack.static VkMemoryBarrier2KHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkMemoryBarrier2KHRinstance allocated on the specifiedMemoryStack.VkMemoryBarrier2KHRpNext(long value)Sets the specified value to thepNextfield.VkMemoryBarrier2KHRset(int sType, long pNext, long srcStageMask, long srcAccessMask, long dstStageMask, long dstAccessMask)Initializes this struct with the specified values.VkMemoryBarrier2KHRset(VkMemoryBarrier2KHR src)Copies the specified struct data to this struct.VkMemoryBarrier2KHRsrcAccessMask(long value)Sets the specified value to thesrcAccessMaskfield.VkMemoryBarrier2KHRsrcStageMask(long value)Sets the specified value to thesrcStageMaskfield.VkMemoryBarrier2KHRsType(int value)Sets the specified value to thesTypefield.VkMemoryBarrier2KHRsType$Default()Sets theSTRUCTURE_TYPE_MEMORY_BARRIER_2value to thesTypefield.-
Methods inherited from class org.lwjgl.vulkan.VkMemoryBarrier2
dstAccessMask, dstStageMask, ndstAccessMask, ndstAccessMask, ndstStageMask, ndstStageMask, npNext, npNext, nsrcAccessMask, nsrcAccessMask, nsrcStageMask, nsrcStageMask, nsType, nsType, pNext, set, sizeof, srcAccessMask, srcStageMask, sType
-
-
-
-
Constructor Detail
-
VkMemoryBarrier2KHR
public VkMemoryBarrier2KHR(java.nio.ByteBuffer container)
Creates aVkMemoryBarrier2KHRinstance 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
-
sType
public VkMemoryBarrier2KHR sType(int value)
Sets the specified value to thesTypefield.- Overrides:
sTypein classVkMemoryBarrier2
-
sType$Default
public VkMemoryBarrier2KHR sType$Default()
Sets theSTRUCTURE_TYPE_MEMORY_BARRIER_2value to thesTypefield.- Overrides:
sType$Defaultin classVkMemoryBarrier2
-
pNext
public VkMemoryBarrier2KHR pNext(long value)
Sets the specified value to thepNextfield.- Overrides:
pNextin classVkMemoryBarrier2
-
srcStageMask
public VkMemoryBarrier2KHR srcStageMask(long value)
Sets the specified value to thesrcStageMaskfield.- Overrides:
srcStageMaskin classVkMemoryBarrier2
-
srcAccessMask
public VkMemoryBarrier2KHR srcAccessMask(long value)
Sets the specified value to thesrcAccessMaskfield.- Overrides:
srcAccessMaskin classVkMemoryBarrier2
-
dstStageMask
public VkMemoryBarrier2KHR dstStageMask(long value)
Sets the specified value to thedstStageMaskfield.- Overrides:
dstStageMaskin classVkMemoryBarrier2
-
dstAccessMask
public VkMemoryBarrier2KHR dstAccessMask(long value)
Sets the specified value to thedstAccessMaskfield.- Overrides:
dstAccessMaskin classVkMemoryBarrier2
-
set
public VkMemoryBarrier2KHR set(int sType, long pNext, long srcStageMask, long srcAccessMask, long dstStageMask, long dstAccessMask)
Initializes this struct with the specified values.- Overrides:
setin classVkMemoryBarrier2
-
set
public VkMemoryBarrier2KHR set(VkMemoryBarrier2KHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkMemoryBarrier2KHR malloc()
Returns a newVkMemoryBarrier2KHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkMemoryBarrier2KHR calloc()
Returns a newVkMemoryBarrier2KHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkMemoryBarrier2KHR create()
Returns a newVkMemoryBarrier2KHRinstance allocated withBufferUtils.
-
create
public static VkMemoryBarrier2KHR create(long address)
Returns a newVkMemoryBarrier2KHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkMemoryBarrier2KHR createSafe(long address)
-
malloc
public static VkMemoryBarrier2KHR.Buffer malloc(int capacity)
Returns a newVkMemoryBarrier2KHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkMemoryBarrier2KHR.Buffer calloc(int capacity)
Returns a newVkMemoryBarrier2KHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkMemoryBarrier2KHR.Buffer create(int capacity)
Returns a newVkMemoryBarrier2KHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkMemoryBarrier2KHR.Buffer create(long address, int capacity)
Create aVkMemoryBarrier2KHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkMemoryBarrier2KHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkMemoryBarrier2KHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkMemoryBarrier2KHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkMemoryBarrier2KHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkMemoryBarrier2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkMemoryBarrier2KHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkMemoryBarrier2KHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkMemoryBarrier2KHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkMemoryBarrier2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-