public class VkPresentTimeGOOGLE
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
presentID – an application-provided identification value, that can be used with the results of GetPastPresentationTimingGOOGLE, in order to uniquely identify this present. In order to be useful to the application, it should be unique within some period of time that is meaningful to the application.desiredPresentTime – specifies that the image given should not be displayed to the user any earlier than this time. desiredPresentTime is a time in nanoseconds, relative to a monotonically-increasing clock (e.g. CLOCK_MONOTONIC (see clock_gettime(2)) on Android and Linux). A value of zero specifies that the presentation engine may display the image at any time. This is useful when the application desires to provide presentID, but does not need a specific desiredPresentTime.
struct VkPresentTimeGOOGLE {
uint32_t presentID;
uint64_t desiredPresentTime;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPresentTimeGOOGLE.Buffer
An array of
VkPresentTimeGOOGLE structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DESIREDPRESENTTIME
The struct member offsets.
|
static int |
PRESENTID
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VkPresentTimeGOOGLE(java.nio.ByteBuffer container)
Creates a
VkPresentTimeGOOGLE instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPresentTimeGOOGLE |
calloc()
Returns a new
VkPresentTimeGOOGLE instance allocated with memCalloc. |
static VkPresentTimeGOOGLE.Buffer |
calloc(int capacity)
Returns a new
VkPresentTimeGOOGLE.Buffer instance allocated with memCalloc. |
static VkPresentTimeGOOGLE |
callocStack()
Returns a new
VkPresentTimeGOOGLE instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPresentTimeGOOGLE.Buffer |
callocStack(int capacity)
Returns a new
VkPresentTimeGOOGLE.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPresentTimeGOOGLE.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPresentTimeGOOGLE.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPresentTimeGOOGLE |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPresentTimeGOOGLE instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPresentTimeGOOGLE |
create()
Returns a new
VkPresentTimeGOOGLE instance allocated with BufferUtils. |
static VkPresentTimeGOOGLE.Buffer |
create(int capacity)
Returns a new
VkPresentTimeGOOGLE.Buffer instance allocated with BufferUtils. |
static VkPresentTimeGOOGLE |
create(long address)
Returns a new
VkPresentTimeGOOGLE instance for the specified memory address. |
static VkPresentTimeGOOGLE.Buffer |
create(long address,
int capacity)
Create a
VkPresentTimeGOOGLE.Buffer instance at the specified memory. |
static VkPresentTimeGOOGLE |
createSafe(long address)
|
static VkPresentTimeGOOGLE.Buffer |
createSafe(long address,
int capacity)
|
long |
desiredPresentTime()
Returns the value of the
desiredPresentTime field. |
VkPresentTimeGOOGLE |
desiredPresentTime(long value)
Sets the specified value to the
desiredPresentTime field. |
static VkPresentTimeGOOGLE |
malloc()
Returns a new
VkPresentTimeGOOGLE instance allocated with memAlloc. |
static VkPresentTimeGOOGLE.Buffer |
malloc(int capacity)
Returns a new
VkPresentTimeGOOGLE.Buffer instance allocated with memAlloc. |
static VkPresentTimeGOOGLE |
mallocStack()
Returns a new
VkPresentTimeGOOGLE instance allocated on the thread-local MemoryStack. |
static VkPresentTimeGOOGLE.Buffer |
mallocStack(int capacity)
Returns a new
VkPresentTimeGOOGLE.Buffer instance allocated on the thread-local MemoryStack. |
static VkPresentTimeGOOGLE.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPresentTimeGOOGLE.Buffer instance allocated on the specified MemoryStack. |
static VkPresentTimeGOOGLE |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPresentTimeGOOGLE instance allocated on the specified MemoryStack. |
static long |
ndesiredPresentTime(long struct)
Unsafe version of
desiredPresentTime(). |
static void |
ndesiredPresentTime(long struct,
long value)
Unsafe version of
desiredPresentTime. |
static int |
npresentID(long struct)
Unsafe version of
presentID(). |
static void |
npresentID(long struct,
int value)
Unsafe version of
presentID. |
int |
presentID()
Returns the value of the
presentID field. |
VkPresentTimeGOOGLE |
presentID(int value)
Sets the specified value to the
presentID field. |
VkPresentTimeGOOGLE |
set(int presentID,
long desiredPresentTime)
Initializes this struct with the specified values.
|
VkPresentTimeGOOGLE |
set(VkPresentTimeGOOGLE src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int PRESENTID
public static final int DESIREDPRESENTTIME
public VkPresentTimeGOOGLE(java.nio.ByteBuffer container)
VkPresentTimeGOOGLE instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int presentID()
presentID field.public long desiredPresentTime()
desiredPresentTime field.public VkPresentTimeGOOGLE presentID(int value)
presentID field.public VkPresentTimeGOOGLE desiredPresentTime(long value)
desiredPresentTime field.public VkPresentTimeGOOGLE set(int presentID, long desiredPresentTime)
public VkPresentTimeGOOGLE set(VkPresentTimeGOOGLE src)
src - the source structpublic static VkPresentTimeGOOGLE malloc()
VkPresentTimeGOOGLE instance allocated with memAlloc. The instance must be explicitly freed.public static VkPresentTimeGOOGLE calloc()
VkPresentTimeGOOGLE instance allocated with memCalloc. The instance must be explicitly freed.public static VkPresentTimeGOOGLE create()
VkPresentTimeGOOGLE instance allocated with BufferUtils.public static VkPresentTimeGOOGLE create(long address)
VkPresentTimeGOOGLE instance for the specified memory address.@Nullable public static VkPresentTimeGOOGLE createSafe(long address)
public static VkPresentTimeGOOGLE.Buffer malloc(int capacity)
VkPresentTimeGOOGLE.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPresentTimeGOOGLE.Buffer calloc(int capacity)
VkPresentTimeGOOGLE.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPresentTimeGOOGLE.Buffer create(int capacity)
VkPresentTimeGOOGLE.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPresentTimeGOOGLE.Buffer create(long address, int capacity)
VkPresentTimeGOOGLE.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPresentTimeGOOGLE.Buffer createSafe(long address, int capacity)
public static VkPresentTimeGOOGLE mallocStack()
VkPresentTimeGOOGLE instance allocated on the thread-local MemoryStack.public static VkPresentTimeGOOGLE callocStack()
VkPresentTimeGOOGLE instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPresentTimeGOOGLE mallocStack(org.lwjgl.system.MemoryStack stack)
VkPresentTimeGOOGLE instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPresentTimeGOOGLE callocStack(org.lwjgl.system.MemoryStack stack)
VkPresentTimeGOOGLE instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPresentTimeGOOGLE.Buffer mallocStack(int capacity)
VkPresentTimeGOOGLE.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPresentTimeGOOGLE.Buffer callocStack(int capacity)
VkPresentTimeGOOGLE.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPresentTimeGOOGLE.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPresentTimeGOOGLE.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPresentTimeGOOGLE.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPresentTimeGOOGLE.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int npresentID(long struct)
presentID().public static long ndesiredPresentTime(long struct)
desiredPresentTime().public static void npresentID(long struct,
int value)
presentID.public static void ndesiredPresentTime(long struct,
long value)
desiredPresentTime.Copyright LWJGL. All Rights Reserved. License terms.