Package org.lwjgl.vulkan
Class VkCheckpointDataNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkCheckpointDataNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkCheckpointDataNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
return structure for command buffer checkpoint data.Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_CHECKPOINT_DATA_NV
pNext
must beNULL
Note that the stages at which a checkpoint marker can be executed are implementation-defined and can be queried by calling
GetPhysicalDeviceQueueFamilyProperties2
.See Also
Member documentation
sType
– the type of this structurepNext
–NULL
or a pointer to an extension-specific structure.stage
– indicates which pipeline stage the checkpoint marker data refers to.pCheckpointMarker
– contains the value of the last checkpoint marker executed in the stage thatstage
refers to.
Layout
struct VkCheckpointDataNV { VkStructureType sType; void * pNext; VkPipelineStageFlagBits stage; void * pCheckpointMarker; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkCheckpointDataNV.Buffer
An array ofVkCheckpointDataNV
structs.
-
Constructor Summary
Constructors Constructor Description VkCheckpointDataNV(java.nio.ByteBuffer container)
Creates aVkCheckpointDataNV
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkCheckpointDataNV
calloc()
Returns a newVkCheckpointDataNV
instance allocated withmemCalloc
.static VkCheckpointDataNV.Buffer
calloc(int capacity)
Returns a newVkCheckpointDataNV.Buffer
instance allocated withmemCalloc
.static VkCheckpointDataNV
callocStack()
Returns a newVkCheckpointDataNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkCheckpointDataNV.Buffer
callocStack(int capacity)
Returns a newVkCheckpointDataNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkCheckpointDataNV.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCheckpointDataNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkCheckpointDataNV
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkCheckpointDataNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkCheckpointDataNV
create()
Returns a newVkCheckpointDataNV
instance allocated withBufferUtils
.static VkCheckpointDataNV.Buffer
create(int capacity)
Returns a newVkCheckpointDataNV.Buffer
instance allocated withBufferUtils
.static VkCheckpointDataNV
create(long address)
Returns a newVkCheckpointDataNV
instance for the specified memory address.static VkCheckpointDataNV.Buffer
create(long address, int capacity)
Create aVkCheckpointDataNV.Buffer
instance at the specified memory.static VkCheckpointDataNV
createSafe(long address)
static VkCheckpointDataNV.Buffer
createSafe(long address, int capacity)
static VkCheckpointDataNV
malloc()
Returns a newVkCheckpointDataNV
instance allocated withmemAlloc
.static VkCheckpointDataNV.Buffer
malloc(int capacity)
Returns a newVkCheckpointDataNV.Buffer
instance allocated withmemAlloc
.static VkCheckpointDataNV
mallocStack()
Returns a newVkCheckpointDataNV
instance allocated on the thread-localMemoryStack
.static VkCheckpointDataNV.Buffer
mallocStack(int capacity)
Returns a newVkCheckpointDataNV.Buffer
instance allocated on the thread-localMemoryStack
.static VkCheckpointDataNV.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCheckpointDataNV.Buffer
instance allocated on the specifiedMemoryStack
.static VkCheckpointDataNV
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkCheckpointDataNV
instance allocated on the specifiedMemoryStack
.static long
npCheckpointMarker(long struct)
Unsafe version ofpCheckpointMarker()
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nstage(long struct)
Unsafe version ofstage()
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.long
pCheckpointMarker()
Returns the value of thepCheckpointMarker
field.long
pNext()
Returns the value of thepNext
field.VkCheckpointDataNV
pNext(long value)
Sets the specified value to thepNext
field.VkCheckpointDataNV
set(int sType, long pNext)
Initializes this struct with the specified values.VkCheckpointDataNV
set(VkCheckpointDataNV src)
Copies the specified struct data to this struct.int
sizeof()
int
stage()
Returns the value of thestage
field.int
sType()
Returns the value of thesType
field.VkCheckpointDataNV
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkCheckpointDataNV
public VkCheckpointDataNV(java.nio.ByteBuffer container)
Creates aVkCheckpointDataNV
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
stage
public int stage()
Returns the value of thestage
field.
-
pCheckpointMarker
public long pCheckpointMarker()
Returns the value of thepCheckpointMarker
field.
-
sType
public VkCheckpointDataNV sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkCheckpointDataNV pNext(long value)
Sets the specified value to thepNext
field.
-
set
public VkCheckpointDataNV set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkCheckpointDataNV set(VkCheckpointDataNV src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkCheckpointDataNV malloc()
Returns a newVkCheckpointDataNV
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkCheckpointDataNV calloc()
Returns a newVkCheckpointDataNV
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkCheckpointDataNV create()
Returns a newVkCheckpointDataNV
instance allocated withBufferUtils
.
-
create
public static VkCheckpointDataNV create(long address)
Returns a newVkCheckpointDataNV
instance for the specified memory address.
-
createSafe
@Nullable public static VkCheckpointDataNV createSafe(long address)
-
malloc
public static VkCheckpointDataNV.Buffer malloc(int capacity)
Returns a newVkCheckpointDataNV.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkCheckpointDataNV.Buffer calloc(int capacity)
Returns a newVkCheckpointDataNV.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkCheckpointDataNV.Buffer create(int capacity)
Returns a newVkCheckpointDataNV.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkCheckpointDataNV.Buffer create(long address, int capacity)
Create aVkCheckpointDataNV.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkCheckpointDataNV.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkCheckpointDataNV mallocStack()
Returns a newVkCheckpointDataNV
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkCheckpointDataNV callocStack()
Returns a newVkCheckpointDataNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkCheckpointDataNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkCheckpointDataNV
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkCheckpointDataNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkCheckpointDataNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkCheckpointDataNV.Buffer mallocStack(int capacity)
Returns a newVkCheckpointDataNV.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkCheckpointDataNV.Buffer callocStack(int capacity)
Returns a newVkCheckpointDataNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkCheckpointDataNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCheckpointDataNV.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkCheckpointDataNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCheckpointDataNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType()
.
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext()
.
-
nstage
public static int nstage(long struct)
Unsafe version ofstage()
.
-
npCheckpointMarker
public static long npCheckpointMarker(long struct)
Unsafe version ofpCheckpointMarker()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
-