Class VkPresentStageTimeEXT
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
struct VkPresentStageTimeEXT {
VkPresentStageFlagsEXT stage;
uint64_t time;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Struct
Struct.StructValidationNested classes/interfaces inherited from interface Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkPresentStageTimeEXT(ByteBuffer container) Creates aVkPresentStageTimeEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkPresentStageTimeEXTcalloc()Returns a newVkPresentStageTimeEXTinstance allocated withmemCalloc.static VkPresentStageTimeEXT.Buffercalloc(int capacity) Returns a newVkPresentStageTimeEXT.Bufferinstance allocated withmemCalloc.static VkPresentStageTimeEXT.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkPresentStageTimeEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPresentStageTimeEXTcalloc(MemoryStack stack) Returns a newVkPresentStageTimeEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPresentStageTimeEXTcreate()Returns a newVkPresentStageTimeEXTinstance allocated withBufferUtils.static VkPresentStageTimeEXT.Buffercreate(int capacity) Returns a newVkPresentStageTimeEXT.Bufferinstance allocated withBufferUtils.static VkPresentStageTimeEXTcreate(long address) Returns a newVkPresentStageTimeEXTinstance for the specified memory address.static VkPresentStageTimeEXT.Buffercreate(long address, int capacity) Create aVkPresentStageTimeEXT.Bufferinstance at the specified memory.static @Nullable VkPresentStageTimeEXTcreateSafe(long address) static @Nullable VkPresentStageTimeEXT.BuffercreateSafe(long address, int capacity) static VkPresentStageTimeEXTmalloc()Returns a newVkPresentStageTimeEXTinstance allocated withmemAlloc.static VkPresentStageTimeEXT.Buffermalloc(int capacity) Returns a newVkPresentStageTimeEXT.Bufferinstance allocated withmemAlloc.static VkPresentStageTimeEXT.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkPresentStageTimeEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkPresentStageTimeEXTmalloc(MemoryStack stack) Returns a newVkPresentStageTimeEXTinstance allocated on the specifiedMemoryStack.static intnstage(long struct) Unsafe version ofstage().static voidnstage(long struct, int value) Unsafe version ofstage.static longntime(long struct) Unsafe version oftime().static voidntime(long struct, long value) Unsafe version oftime.set(int stage, long time) Initializes this struct with the specified values.set(VkPresentStageTimeEXT src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intstage()stage(int value) Sets the specified value to thestagefield.longtime()time(long value) Sets the specified value to thetimefield.Methods inherited from class Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STAGE
public static final int STAGEThe struct member offsets. -
TIME
public static final int TIMEThe struct member offsets.
-
-
Constructor Details
-
VkPresentStageTimeEXT
Creates aVkPresentStageTimeEXTinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkPresentStageTimeEXT>
-
stage
- Returns:
- the value of the
stagefield.
-
time
- Returns:
- the value of the
timefield.
-
stage
Sets the specified value to thestagefield. -
time
Sets the specified value to thetimefield. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkPresentStageTimeEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkPresentStageTimeEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkPresentStageTimeEXTinstance allocated withBufferUtils. -
create
Returns a newVkPresentStageTimeEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkPresentStageTimeEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkPresentStageTimeEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkPresentStageTimeEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkPresentStageTimeEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkPresentStageTimeEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkPresentStageTimeEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkPresentStageTimeEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkPresentStageTimeEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nstage
public static int nstage(long struct) Unsafe version ofstage(). -
ntime
public static long ntime(long struct) Unsafe version oftime(). -
nstage
public static void nstage(long struct, int value) Unsafe version ofstage. -
ntime
public static void ntime(long struct, long value) Unsafe version oftime.
-