Package org.lwjgl.vulkan
Class VkPresentTimesInfoGOOGLE
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPresentTimesInfoGOOGLE
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkPresentTimesInfoGOOGLE extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
The earliest time each image should be presented.Valid Usage
swapchainCount
must be the same value asVkPresentInfoKHR
::swapchainCount
, whereVkPresentInfoKHR
is in thepNext
chain of thisVkPresentTimesInfoGOOGLE
structure.
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_PRESENT_TIMES_INFO_GOOGLE
- If
pTimes
is notNULL
,pTimes
must be a valid pointer to an array ofswapchainCount
VkPresentTimeGOOGLE
structures swapchainCount
must be greater than 0
See Also
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.swapchainCount
– the number of swapchains being presented to by this command.pTimes
–NULL
or a pointer to an array ofVkPresentTimeGOOGLE
elements withswapchainCount
entries. If notNULL
, each element ofpTimes
contains the earliest time to present the image corresponding to the entry in theVkPresentInfoKHR
::pImageIndices
array.
Layout
struct VkPresentTimesInfoGOOGLE { VkStructureType sType; void const * pNext; uint32_t swapchainCount;
VkPresentTimeGOOGLE
const * pTimes; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkPresentTimesInfoGOOGLE.Buffer
An array ofVkPresentTimesInfoGOOGLE
structs.
-
Constructor Summary
Constructors Constructor Description VkPresentTimesInfoGOOGLE(java.nio.ByteBuffer container)
Creates aVkPresentTimesInfoGOOGLE
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 VkPresentTimesInfoGOOGLE
calloc()
Returns a newVkPresentTimesInfoGOOGLE
instance allocated withmemCalloc
.static VkPresentTimesInfoGOOGLE.Buffer
calloc(int capacity)
Returns a newVkPresentTimesInfoGOOGLE.Buffer
instance allocated withmemCalloc
.static VkPresentTimesInfoGOOGLE
callocStack()
Returns a newVkPresentTimesInfoGOOGLE
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPresentTimesInfoGOOGLE.Buffer
callocStack(int capacity)
Returns a newVkPresentTimesInfoGOOGLE.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPresentTimesInfoGOOGLE.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPresentTimesInfoGOOGLE.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPresentTimesInfoGOOGLE
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPresentTimesInfoGOOGLE
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPresentTimesInfoGOOGLE
create()
Returns a newVkPresentTimesInfoGOOGLE
instance allocated withBufferUtils
.static VkPresentTimesInfoGOOGLE.Buffer
create(int capacity)
Returns a newVkPresentTimesInfoGOOGLE.Buffer
instance allocated withBufferUtils
.static VkPresentTimesInfoGOOGLE
create(long address)
Returns a newVkPresentTimesInfoGOOGLE
instance for the specified memory address.static VkPresentTimesInfoGOOGLE.Buffer
create(long address, int capacity)
Create aVkPresentTimesInfoGOOGLE.Buffer
instance at the specified memory.static VkPresentTimesInfoGOOGLE
createSafe(long address)
static VkPresentTimesInfoGOOGLE.Buffer
createSafe(long address, int capacity)
static VkPresentTimesInfoGOOGLE
malloc()
Returns a newVkPresentTimesInfoGOOGLE
instance allocated withmemAlloc
.static VkPresentTimesInfoGOOGLE.Buffer
malloc(int capacity)
Returns a newVkPresentTimesInfoGOOGLE.Buffer
instance allocated withmemAlloc
.static VkPresentTimesInfoGOOGLE
mallocStack()
Returns a newVkPresentTimesInfoGOOGLE
instance allocated on the thread-localMemoryStack
.static VkPresentTimesInfoGOOGLE.Buffer
mallocStack(int capacity)
Returns a newVkPresentTimesInfoGOOGLE.Buffer
instance allocated on the thread-localMemoryStack
.static VkPresentTimesInfoGOOGLE.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPresentTimesInfoGOOGLE.Buffer
instance allocated on the specifiedMemoryStack
.static VkPresentTimesInfoGOOGLE
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPresentTimesInfoGOOGLE
instance allocated on the specifiedMemoryStack
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static VkPresentTimeGOOGLE.Buffer
npTimes(long struct)
Unsafe version ofpTimes()
.static void
npTimes(long struct, VkPresentTimeGOOGLE.Buffer value)
Unsafe version ofpTimes
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.static int
nswapchainCount(long struct)
Unsafe version ofswapchainCount()
.static void
nswapchainCount(long struct, int value)
Sets the specified value to theswapchainCount
field of the specifiedstruct
.long
pNext()
Returns the value of thepNext
field.VkPresentTimesInfoGOOGLE
pNext(long value)
Sets the specified value to thepNext
field.VkPresentTimeGOOGLE.Buffer
pTimes()
Returns aVkPresentTimeGOOGLE.Buffer
view of the struct array pointed to by thepTimes
field.VkPresentTimesInfoGOOGLE
pTimes(VkPresentTimeGOOGLE.Buffer value)
Sets the address of the specifiedVkPresentTimeGOOGLE.Buffer
to thepTimes
field.VkPresentTimesInfoGOOGLE
set(int sType, long pNext, int swapchainCount, VkPresentTimeGOOGLE.Buffer pTimes)
Initializes this struct with the specified values.VkPresentTimesInfoGOOGLE
set(VkPresentTimesInfoGOOGLE src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkPresentTimesInfoGOOGLE
sType(int value)
Sets the specified value to thesType
field.int
swapchainCount()
Returns the value of theswapchainCount
field.VkPresentTimesInfoGOOGLE
swapchainCount(int value)
Sets the specified value to theswapchainCount
field.
-
-
-
Constructor Detail
-
VkPresentTimesInfoGOOGLE
public VkPresentTimesInfoGOOGLE(java.nio.ByteBuffer container)
Creates aVkPresentTimesInfoGOOGLE
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.
-
swapchainCount
public int swapchainCount()
Returns the value of theswapchainCount
field.
-
pTimes
@Nullable public VkPresentTimeGOOGLE.Buffer pTimes()
Returns aVkPresentTimeGOOGLE.Buffer
view of the struct array pointed to by thepTimes
field.
-
sType
public VkPresentTimesInfoGOOGLE sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkPresentTimesInfoGOOGLE pNext(long value)
Sets the specified value to thepNext
field.
-
swapchainCount
public VkPresentTimesInfoGOOGLE swapchainCount(int value)
Sets the specified value to theswapchainCount
field.
-
pTimes
public VkPresentTimesInfoGOOGLE pTimes(@Nullable VkPresentTimeGOOGLE.Buffer value)
Sets the address of the specifiedVkPresentTimeGOOGLE.Buffer
to thepTimes
field.
-
set
public VkPresentTimesInfoGOOGLE set(int sType, long pNext, int swapchainCount, @Nullable VkPresentTimeGOOGLE.Buffer pTimes)
Initializes this struct with the specified values.
-
set
public VkPresentTimesInfoGOOGLE set(VkPresentTimesInfoGOOGLE src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkPresentTimesInfoGOOGLE malloc()
Returns a newVkPresentTimesInfoGOOGLE
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPresentTimesInfoGOOGLE calloc()
Returns a newVkPresentTimesInfoGOOGLE
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPresentTimesInfoGOOGLE create()
Returns a newVkPresentTimesInfoGOOGLE
instance allocated withBufferUtils
.
-
create
public static VkPresentTimesInfoGOOGLE create(long address)
Returns a newVkPresentTimesInfoGOOGLE
instance for the specified memory address.
-
createSafe
@Nullable public static VkPresentTimesInfoGOOGLE createSafe(long address)
-
malloc
public static VkPresentTimesInfoGOOGLE.Buffer malloc(int capacity)
Returns a newVkPresentTimesInfoGOOGLE.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPresentTimesInfoGOOGLE.Buffer calloc(int capacity)
Returns a newVkPresentTimesInfoGOOGLE.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPresentTimesInfoGOOGLE.Buffer create(int capacity)
Returns a newVkPresentTimesInfoGOOGLE.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPresentTimesInfoGOOGLE.Buffer create(long address, int capacity)
Create aVkPresentTimesInfoGOOGLE.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkPresentTimesInfoGOOGLE.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPresentTimesInfoGOOGLE mallocStack()
Returns a newVkPresentTimesInfoGOOGLE
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPresentTimesInfoGOOGLE callocStack()
Returns a newVkPresentTimesInfoGOOGLE
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPresentTimesInfoGOOGLE mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPresentTimesInfoGOOGLE
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPresentTimesInfoGOOGLE callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPresentTimesInfoGOOGLE
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkPresentTimesInfoGOOGLE.Buffer mallocStack(int capacity)
Returns a newVkPresentTimesInfoGOOGLE.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPresentTimesInfoGOOGLE.Buffer callocStack(int capacity)
Returns a newVkPresentTimesInfoGOOGLE.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkPresentTimesInfoGOOGLE.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPresentTimesInfoGOOGLE.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkPresentTimesInfoGOOGLE.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPresentTimesInfoGOOGLE.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()
.
-
nswapchainCount
public static int nswapchainCount(long struct)
Unsafe version ofswapchainCount()
.
-
npTimes
@Nullable public static VkPresentTimeGOOGLE.Buffer npTimes(long struct)
Unsafe version ofpTimes()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
nswapchainCount
public static void nswapchainCount(long struct, int value)
Sets the specified value to theswapchainCount
field of the specifiedstruct
.
-
npTimes
public static void npTimes(long struct, @Nullable VkPresentTimeGOOGLE.Buffer value)
Unsafe version ofpTimes
.
-
-