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 included 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
Layout
struct VkPresentTimesInfoGOOGLE { VkStructureTypesType(); void const *pNext(); uint32_tswapchainCount();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 Deprecated 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 VkPresentTimesInfoGOOGLE.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPresentTimesInfoGOOGLE.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPresentTimesInfoGOOGLEcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPresentTimesInfoGOOGLEinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPresentTimesInfoGOOGLEcallocStack()Deprecated.static VkPresentTimesInfoGOOGLE.BuffercallocStack(int capacity)Deprecated.static VkPresentTimesInfoGOOGLE.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPresentTimesInfoGOOGLEcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 VkPresentTimesInfoGOOGLE.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPresentTimesInfoGOOGLE.Bufferinstance allocated on the specifiedMemoryStack.static VkPresentTimesInfoGOOGLEmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPresentTimesInfoGOOGLEinstance allocated on the specifiedMemoryStack.static VkPresentTimesInfoGOOGLEmallocStack()Deprecated.static VkPresentTimesInfoGOOGLE.BuffermallocStack(int capacity)Deprecated.static VkPresentTimesInfoGOOGLE.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPresentTimesInfoGOOGLEmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()NULLor a pointer to a structure extending this structure.VkPresentTimesInfoGOOGLEpNext(long value)Sets the specified value to thepNext()field.VkPresentTimeGOOGLE.BufferpTimes()VkPresentTimesInfoGOOGLEpTimes(VkPresentTimeGOOGLE.Buffer value)Sets the address of the specifiedVkPresentTimeGOOGLE.Bufferto thepTimes()field.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()the type of this structure.VkPresentTimesInfoGOOGLEsType(int value)Sets the specified value to thesType()field.VkPresentTimesInfoGOOGLEsType$Default()Sets theSTRUCTURE_TYPE_PRESENT_TIMES_INFO_GOOGLEvalue to thesType()field.intswapchainCount()the number of swapchains being presented to by this command.VkPresentTimesInfoGOOGLEswapchainCount(int value)Sets the specified value to theswapchainCount()field.
-
-
-
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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
swapchainCount
public int swapchainCount()
the number of swapchains being presented to by this command.
-
pTimes
@Nullable public VkPresentTimeGOOGLE.Buffer 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.
-
sType
public VkPresentTimesInfoGOOGLE sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPresentTimesInfoGOOGLE sType$Default()
Sets theSTRUCTURE_TYPE_PRESENT_TIMES_INFO_GOOGLEvalue 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.Bufferto 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 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
@Deprecated public static VkPresentTimesInfoGOOGLE mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPresentTimesInfoGOOGLE callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPresentTimesInfoGOOGLE mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPresentTimesInfoGOOGLE callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPresentTimesInfoGOOGLE.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPresentTimesInfoGOOGLE.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPresentTimesInfoGOOGLE.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPresentTimesInfoGOOGLE.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkPresentTimesInfoGOOGLE malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPresentTimesInfoGOOGLEinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPresentTimesInfoGOOGLE calloc(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
-
malloc
public static VkPresentTimesInfoGOOGLE.Buffer malloc(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
-
calloc
public static VkPresentTimesInfoGOOGLE.Buffer calloc(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.
-
-