Class VkPastPresentationTimingEXT
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
public class VkPastPresentationTimingEXT
extends Struct<VkPastPresentationTimingEXT>
implements NativeResource
struct VkPastPresentationTimingEXT {
VkStructureType sType;
void * pNext;
uint64_t presentId;
uint64_t targetTime;
uint32_t presentStageCount;
VkPresentStageTimeEXT * pPresentStages;
VkTimeDomainKHR timeDomain;
uint64_t timeDomainId;
VkBool32 reportComplete;
}-
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 member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.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
ConstructorsConstructorDescriptionVkPastPresentationTimingEXT(ByteBuffer container) Creates aVkPastPresentationTimingEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkPastPresentationTimingEXTcalloc()Returns a newVkPastPresentationTimingEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkPastPresentationTimingEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkPastPresentationTimingEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPastPresentationTimingEXTcalloc(MemoryStack stack) Returns a newVkPastPresentationTimingEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPastPresentationTimingEXTcreate()Returns a newVkPastPresentationTimingEXTinstance allocated withBufferUtils.create(int capacity) Returns a newVkPastPresentationTimingEXT.Bufferinstance allocated withBufferUtils.static VkPastPresentationTimingEXTcreate(long address) Returns a newVkPastPresentationTimingEXTinstance for the specified memory address.create(long address, int capacity) Create aVkPastPresentationTimingEXT.Bufferinstance at the specified memory.static @Nullable VkPastPresentationTimingEXTcreateSafe(long address) static @Nullable VkPastPresentationTimingEXT.BuffercreateSafe(long address, int capacity) static VkPastPresentationTimingEXTmalloc()Returns a newVkPastPresentationTimingEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkPastPresentationTimingEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkPastPresentationTimingEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkPastPresentationTimingEXTmalloc(MemoryStack stack) Returns a newVkPastPresentationTimingEXTinstance allocated on the specifiedMemoryStack.static longnpNext(long struct) Unsafe version ofpNext().static voidnpNext(long struct, long value) Unsafe version ofpNext.static VkPresentStageTimeEXT.BuffernpPresentStages(long struct) Unsafe version ofpPresentStages().static voidnpPresentStages(long struct, VkPresentStageTimeEXT.Buffer value) Unsafe version ofpPresentStages.static longnpresentId(long struct) Unsafe version ofpresentId().static voidnpresentId(long struct, long value) Unsafe version ofpresentId.static intnpresentStageCount(long struct) Unsafe version ofpresentStageCount().static voidnpresentStageCount(long struct, int value) Sets the specified value to thepresentStageCountfield of the specifiedstruct.static intnreportComplete(long struct) Unsafe version ofreportComplete().static voidnreportComplete(long struct, int value) Unsafe version ofreportComplete.static intnsType(long struct) Unsafe version ofsType().static voidnsType(long struct, int value) Unsafe version ofsType.static longntargetTime(long struct) Unsafe version oftargetTime().static voidntargetTime(long struct, long value) Unsafe version oftargetTime.static intntimeDomain(long struct) Unsafe version oftimeDomain().static voidntimeDomain(long struct, int value) Unsafe version oftimeDomain.static longntimeDomainId(long struct) Unsafe version oftimeDomainId().static voidntimeDomainId(long struct, long value) Unsafe version oftimeDomainId.longpNext()pNext(long value) Sets the specified value to thepNextfield.Sets the address of the specifiedVkPresentStageTimeEXT.Bufferto thepPresentStagesfield.longpresentId(long value) Sets the specified value to thepresentIdfield.intbooleanreportComplete(boolean value) Sets the specified value to thereportCompletefield.set(int sType, long pNext, long presentId, long targetTime, VkPresentStageTimeEXT.Buffer pPresentStages, int timeDomain, long timeDomainId, boolean reportComplete) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intsType()sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_PAST_PRESENTATION_TIMING_EXTvalue to thesTypefield.longtargetTime(long value) Sets the specified value to thetargetTimefield.inttimeDomain(int value) Sets the specified value to thetimeDomainfield.longtimeDomainId(long value) Sets the specified value to thetimeDomainIdfield.static voidvalidate(long struct) Validates pointer members that should not beNULL.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. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
PRESENTID
public static final int PRESENTIDThe struct member offsets. -
TARGETTIME
public static final int TARGETTIMEThe struct member offsets. -
PRESENTSTAGECOUNT
public static final int PRESENTSTAGECOUNTThe struct member offsets. -
PPRESENTSTAGES
public static final int PPRESENTSTAGESThe struct member offsets. -
TIMEDOMAIN
public static final int TIMEDOMAINThe struct member offsets. -
TIMEDOMAINID
public static final int TIMEDOMAINIDThe struct member offsets. -
REPORTCOMPLETE
public static final int REPORTCOMPLETEThe struct member offsets.
-
-
Constructor Details
-
VkPastPresentationTimingEXT
Creates aVkPastPresentationTimingEXTinstance 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<VkPastPresentationTimingEXT>
-
sType
- Returns:
- the value of the
sTypefield.
-
pNext
- Returns:
- the value of the
pNextfield.
-
presentId
- Returns:
- the value of the
presentIdfield.
-
targetTime
- Returns:
- the value of the
targetTimefield.
-
presentStageCount
- Returns:
- the value of the
presentStageCountfield.
-
pPresentStages
- Returns:
- a
VkPresentStageTimeEXT.Bufferview of the struct array pointed to by thepPresentStagesfield.
-
timeDomain
- Returns:
- the value of the
timeDomainfield.
-
timeDomainId
- Returns:
- the value of the
timeDomainIdfield.
-
reportComplete
- Returns:
- the value of the
reportCompletefield.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_PAST_PRESENTATION_TIMING_EXTvalue to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
presentId
Sets the specified value to thepresentIdfield. -
targetTime
Sets the specified value to thetargetTimefield. -
pPresentStages
public VkPastPresentationTimingEXT pPresentStages(@NativeType("VkPresentStageTimeEXT *") VkPresentStageTimeEXT.Buffer value) Sets the address of the specifiedVkPresentStageTimeEXT.Bufferto thepPresentStagesfield. -
timeDomain
Sets the specified value to thetimeDomainfield. -
timeDomainId
Sets the specified value to thetimeDomainIdfield. -
reportComplete
Sets the specified value to thereportCompletefield. -
set
public VkPastPresentationTimingEXT set(int sType, long pNext, long presentId, long targetTime, VkPresentStageTimeEXT.Buffer pPresentStages, int timeDomain, long timeDomainId, boolean reportComplete) 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 newVkPastPresentationTimingEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkPastPresentationTimingEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkPastPresentationTimingEXTinstance allocated withBufferUtils. -
create
Returns a newVkPastPresentationTimingEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkPastPresentationTimingEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkPastPresentationTimingEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkPastPresentationTimingEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkPastPresentationTimingEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkPastPresentationTimingEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkPastPresentationTimingEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkPastPresentationTimingEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkPastPresentationTimingEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsType
public static int nsType(long struct) Unsafe version ofsType(). -
npNext
public static long npNext(long struct) Unsafe version ofpNext(). -
npresentId
public static long npresentId(long struct) Unsafe version ofpresentId(). -
ntargetTime
public static long ntargetTime(long struct) Unsafe version oftargetTime(). -
npresentStageCount
public static int npresentStageCount(long struct) Unsafe version ofpresentStageCount(). -
npPresentStages
Unsafe version ofpPresentStages(). -
ntimeDomain
public static int ntimeDomain(long struct) Unsafe version oftimeDomain(). -
ntimeDomainId
public static long ntimeDomainId(long struct) Unsafe version oftimeDomainId(). -
nreportComplete
public static int nreportComplete(long struct) Unsafe version ofreportComplete(). -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext. -
npresentId
public static void npresentId(long struct, long value) Unsafe version ofpresentId. -
ntargetTime
public static void ntargetTime(long struct, long value) Unsafe version oftargetTime. -
npresentStageCount
public static void npresentStageCount(long struct, int value) Sets the specified value to thepresentStageCountfield of the specifiedstruct. -
npPresentStages
Unsafe version ofpPresentStages. -
ntimeDomain
public static void ntimeDomain(long struct, int value) Unsafe version oftimeDomain. -
ntimeDomainId
public static void ntimeDomainId(long struct, long value) Unsafe version oftimeDomainId. -
nreportComplete
public static void nreportComplete(long struct, int value) Unsafe version ofreportComplete. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-