Package org.lwjgl.vulkan
Class VkPhysicalDevicePresentWaitFeaturesKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDevicePresentWaitFeaturesKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDevicePresentWaitFeaturesKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure indicating support for present wait.Description
If the
VkPhysicalDevicePresentWaitFeaturesKHRstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDevicePresentWaitFeaturesKHRcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_WAIT_FEATURES_KHR
Layout
struct VkPhysicalDevicePresentWaitFeaturesKHR { VkStructureTypesType(); void *pNext(); VkBool32presentWait(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDevicePresentWaitFeaturesKHR.BufferAn array ofVkPhysicalDevicePresentWaitFeaturesKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
PRESENTWAITThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDevicePresentWaitFeaturesKHR(java.nio.ByteBuffer container)Creates aVkPhysicalDevicePresentWaitFeaturesKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDevicePresentWaitFeaturesKHRcalloc()Returns a newVkPhysicalDevicePresentWaitFeaturesKHRinstance allocated withmemCalloc.static VkPhysicalDevicePresentWaitFeaturesKHR.Buffercalloc(int capacity)Returns a newVkPhysicalDevicePresentWaitFeaturesKHR.Bufferinstance allocated withmemCalloc.static VkPhysicalDevicePresentWaitFeaturesKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevicePresentWaitFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDevicePresentWaitFeaturesKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevicePresentWaitFeaturesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDevicePresentWaitFeaturesKHRcreate()Returns a newVkPhysicalDevicePresentWaitFeaturesKHRinstance allocated withBufferUtils.static VkPhysicalDevicePresentWaitFeaturesKHR.Buffercreate(int capacity)Returns a newVkPhysicalDevicePresentWaitFeaturesKHR.Bufferinstance allocated withBufferUtils.static VkPhysicalDevicePresentWaitFeaturesKHRcreate(long address)Returns a newVkPhysicalDevicePresentWaitFeaturesKHRinstance for the specified memory address.static VkPhysicalDevicePresentWaitFeaturesKHR.Buffercreate(long address, int capacity)Create aVkPhysicalDevicePresentWaitFeaturesKHR.Bufferinstance at the specified memory.static VkPhysicalDevicePresentWaitFeaturesKHRcreateSafe(long address)static VkPhysicalDevicePresentWaitFeaturesKHR.BuffercreateSafe(long address, int capacity)static VkPhysicalDevicePresentWaitFeaturesKHRmalloc()Returns a newVkPhysicalDevicePresentWaitFeaturesKHRinstance allocated withmemAlloc.static VkPhysicalDevicePresentWaitFeaturesKHR.Buffermalloc(int capacity)Returns a newVkPhysicalDevicePresentWaitFeaturesKHR.Bufferinstance allocated withmemAlloc.static VkPhysicalDevicePresentWaitFeaturesKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevicePresentWaitFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDevicePresentWaitFeaturesKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevicePresentWaitFeaturesKHRinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnpresentWait(long struct)Unsafe version ofpresentWait().static voidnpresentWait(long struct, int value)Unsafe version ofpresentWait.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDevicePresentWaitFeaturesKHRpNext(long value)Sets the specified value to thepNext()field.booleanpresentWait()indicates that the implementation supportsvkWaitForPresentKHR.VkPhysicalDevicePresentWaitFeaturesKHRpresentWait(boolean value)Sets the specified value to thepresentWait()field.VkPhysicalDevicePresentWaitFeaturesKHRset(int sType, long pNext, boolean presentWait)Initializes this struct with the specified values.VkPhysicalDevicePresentWaitFeaturesKHRset(VkPhysicalDevicePresentWaitFeaturesKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDevicePresentWaitFeaturesKHRsType(int value)Sets the specified value to thesType()field.VkPhysicalDevicePresentWaitFeaturesKHRsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_WAIT_FEATURES_KHRvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDevicePresentWaitFeaturesKHR
public VkPhysicalDevicePresentWaitFeaturesKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDevicePresentWaitFeaturesKHRinstance 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.
-
presentWait
public boolean presentWait()
indicates that the implementation supportsvkWaitForPresentKHR.
-
sType
public VkPhysicalDevicePresentWaitFeaturesKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDevicePresentWaitFeaturesKHR sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_WAIT_FEATURES_KHRvalue to thesType()field.
-
pNext
public VkPhysicalDevicePresentWaitFeaturesKHR pNext(long value)
Sets the specified value to thepNext()field.
-
presentWait
public VkPhysicalDevicePresentWaitFeaturesKHR presentWait(boolean value)
Sets the specified value to thepresentWait()field.
-
set
public VkPhysicalDevicePresentWaitFeaturesKHR set(int sType, long pNext, boolean presentWait)
Initializes this struct with the specified values.
-
set
public VkPhysicalDevicePresentWaitFeaturesKHR set(VkPhysicalDevicePresentWaitFeaturesKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDevicePresentWaitFeaturesKHR malloc()
Returns a newVkPhysicalDevicePresentWaitFeaturesKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDevicePresentWaitFeaturesKHR calloc()
Returns a newVkPhysicalDevicePresentWaitFeaturesKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDevicePresentWaitFeaturesKHR create()
Returns a newVkPhysicalDevicePresentWaitFeaturesKHRinstance allocated withBufferUtils.
-
create
public static VkPhysicalDevicePresentWaitFeaturesKHR create(long address)
Returns a newVkPhysicalDevicePresentWaitFeaturesKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDevicePresentWaitFeaturesKHR createSafe(long address)
-
malloc
public static VkPhysicalDevicePresentWaitFeaturesKHR.Buffer malloc(int capacity)
Returns a newVkPhysicalDevicePresentWaitFeaturesKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDevicePresentWaitFeaturesKHR.Buffer calloc(int capacity)
Returns a newVkPhysicalDevicePresentWaitFeaturesKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDevicePresentWaitFeaturesKHR.Buffer create(int capacity)
Returns a newVkPhysicalDevicePresentWaitFeaturesKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDevicePresentWaitFeaturesKHR.Buffer create(long address, int capacity)
Create aVkPhysicalDevicePresentWaitFeaturesKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDevicePresentWaitFeaturesKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDevicePresentWaitFeaturesKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevicePresentWaitFeaturesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDevicePresentWaitFeaturesKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevicePresentWaitFeaturesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDevicePresentWaitFeaturesKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevicePresentWaitFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDevicePresentWaitFeaturesKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevicePresentWaitFeaturesKHR.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().
-
npresentWait
public static int npresentWait(long struct)
Unsafe version ofpresentWait().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
npresentWait
public static void npresentWait(long struct, int value)Unsafe version ofpresentWait.
-
-