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.NativeResourceThe earliest time each image should be presented.Valid Usage
swapchainCountmust be the same value asVkPresentInfoKHR::swapchainCount, whereVkPresentInfoKHRis in thepNextchain of thisVkPresentTimesInfoGOOGLEstructure.
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PRESENT_TIMES_INFO_GOOGLE- If
pTimesis notNULL,pTimesmust be a valid pointer to an array ofswapchainCountVkPresentTimeGOOGLEstructures swapchainCountmust be greater than 0
See Also
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.swapchainCount– the number of swapchains being presented to by this command.pTimes–NULLor a pointer to an array ofVkPresentTimeGOOGLEelements withswapchainCountentries. If notNULL, each element ofpTimescontains the earliest time to present the image corresponding to the entry in theVkPresentInfoKHR::pImageIndicesarray.
Layout
struct VkPresentTimesInfoGOOGLE { VkStructureType sType; void const * pNext; uint32_t swapchainCount;VkPresentTimeGOOGLEconst * pTimes; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPresentTimesInfoGOOGLE.BufferAn array ofVkPresentTimesInfoGOOGLEstructs.
-
Constructor Summary
Constructors Constructor Description VkPresentTimesInfoGOOGLE(java.nio.ByteBuffer container)Creates aVkPresentTimesInfoGOOGLEinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPresentTimesInfoGOOGLEcalloc()Returns a newVkPresentTimesInfoGOOGLEinstance allocated withmemCalloc.static VkPresentTimesInfoGOOGLE.Buffercalloc(int capacity)Returns a newVkPresentTimesInfoGOOGLE.Bufferinstance allocated withmemCalloc.static VkPresentTimesInfoGOOGLEcallocStack()Returns a newVkPresentTimesInfoGOOGLEinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPresentTimesInfoGOOGLE.BuffercallocStack(int capacity)Returns a newVkPresentTimesInfoGOOGLE.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPresentTimesInfoGOOGLE.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPresentTimesInfoGOOGLE.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPresentTimesInfoGOOGLEcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPresentTimesInfoGOOGLEinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPresentTimesInfoGOOGLEcreate()Returns a newVkPresentTimesInfoGOOGLEinstance allocated withBufferUtils.static VkPresentTimesInfoGOOGLE.Buffercreate(int capacity)Returns a newVkPresentTimesInfoGOOGLE.Bufferinstance allocated withBufferUtils.static VkPresentTimesInfoGOOGLEcreate(long address)Returns a newVkPresentTimesInfoGOOGLEinstance for the specified memory address.static VkPresentTimesInfoGOOGLE.Buffercreate(long address, int capacity)Create aVkPresentTimesInfoGOOGLE.Bufferinstance at the specified memory.static VkPresentTimesInfoGOOGLEcreateSafe(long address)static VkPresentTimesInfoGOOGLE.BuffercreateSafe(long address, int capacity)static VkPresentTimesInfoGOOGLEmalloc()Returns a newVkPresentTimesInfoGOOGLEinstance allocated withmemAlloc.static VkPresentTimesInfoGOOGLE.Buffermalloc(int capacity)Returns a newVkPresentTimesInfoGOOGLE.Bufferinstance allocated withmemAlloc.static VkPresentTimesInfoGOOGLEmallocStack()Returns a newVkPresentTimesInfoGOOGLEinstance allocated on the thread-localMemoryStack.static VkPresentTimesInfoGOOGLE.BuffermallocStack(int capacity)Returns a newVkPresentTimesInfoGOOGLE.Bufferinstance allocated on the thread-localMemoryStack.static VkPresentTimesInfoGOOGLE.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPresentTimesInfoGOOGLE.Bufferinstance allocated on the specifiedMemoryStack.static VkPresentTimesInfoGOOGLEmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPresentTimesInfoGOOGLEinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static VkPresentTimeGOOGLE.BuffernpTimes(long struct)Unsafe version ofpTimes().static voidnpTimes(long struct, VkPresentTimeGOOGLE.Buffer value)Unsafe version ofpTimes.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static intnswapchainCount(long struct)Unsafe version ofswapchainCount().static voidnswapchainCount(long struct, int value)Sets the specified value to theswapchainCountfield of the specifiedstruct.longpNext()Returns the value of thepNextfield.VkPresentTimesInfoGOOGLEpNext(long value)Sets the specified value to thepNextfield.VkPresentTimeGOOGLE.BufferpTimes()Returns aVkPresentTimeGOOGLE.Bufferview of the struct array pointed to by thepTimesfield.VkPresentTimesInfoGOOGLEpTimes(VkPresentTimeGOOGLE.Buffer value)Sets the address of the specifiedVkPresentTimeGOOGLE.Bufferto thepTimesfield.VkPresentTimesInfoGOOGLEset(int sType, long pNext, int swapchainCount, VkPresentTimeGOOGLE.Buffer pTimes)Initializes this struct with the specified values.VkPresentTimesInfoGOOGLEset(VkPresentTimesInfoGOOGLE src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkPresentTimesInfoGOOGLEsType(int value)Sets the specified value to thesTypefield.intswapchainCount()Returns the value of theswapchainCountfield.VkPresentTimesInfoGOOGLEswapchainCount(int value)Sets the specified value to theswapchainCountfield.
-
-
-
Constructor Detail
-
VkPresentTimesInfoGOOGLE
public VkPresentTimesInfoGOOGLE(java.nio.ByteBuffer container)
Creates aVkPresentTimesInfoGOOGLEinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
swapchainCount
public int swapchainCount()
Returns the value of theswapchainCountfield.
-
pTimes
@Nullable public VkPresentTimeGOOGLE.Buffer pTimes()
Returns aVkPresentTimeGOOGLE.Bufferview of the struct array pointed to by thepTimesfield.
-
sType
public VkPresentTimesInfoGOOGLE sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPresentTimesInfoGOOGLE pNext(long value)
Sets the specified value to thepNextfield.
-
swapchainCount
public VkPresentTimesInfoGOOGLE swapchainCount(int value)
Sets the specified value to theswapchainCountfield.
-
pTimes
public VkPresentTimesInfoGOOGLE pTimes(@Nullable VkPresentTimeGOOGLE.Buffer value)
Sets the address of the specifiedVkPresentTimeGOOGLE.Bufferto thepTimesfield.
-
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 newVkPresentTimesInfoGOOGLEinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPresentTimesInfoGOOGLE calloc()
Returns a newVkPresentTimesInfoGOOGLEinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPresentTimesInfoGOOGLE create()
Returns a newVkPresentTimesInfoGOOGLEinstance allocated withBufferUtils.
-
create
public static VkPresentTimesInfoGOOGLE create(long address)
Returns a newVkPresentTimesInfoGOOGLEinstance for the specified memory address.
-
createSafe
@Nullable public static VkPresentTimesInfoGOOGLE createSafe(long address)
-
malloc
public static VkPresentTimesInfoGOOGLE.Buffer malloc(int capacity)
Returns a newVkPresentTimesInfoGOOGLE.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPresentTimesInfoGOOGLE.Buffer calloc(int capacity)
Returns a newVkPresentTimesInfoGOOGLE.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPresentTimesInfoGOOGLE.Buffer create(int capacity)
Returns a newVkPresentTimesInfoGOOGLE.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPresentTimesInfoGOOGLE.Buffer create(long address, int capacity)
Create aVkPresentTimesInfoGOOGLE.Bufferinstance 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 newVkPresentTimesInfoGOOGLEinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPresentTimesInfoGOOGLE callocStack()
Returns a newVkPresentTimesInfoGOOGLEinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPresentTimesInfoGOOGLE mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPresentTimesInfoGOOGLEinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPresentTimesInfoGOOGLE callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPresentTimesInfoGOOGLEinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPresentTimesInfoGOOGLE.Buffer callocStack(int capacity)
Returns a newVkPresentTimesInfoGOOGLE.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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 theswapchainCountfield of the specifiedstruct.
-
npTimes
public static void npTimes(long struct, @Nullable VkPresentTimeGOOGLE.Buffer value)Unsafe version ofpTimes.
-
-