Package org.lwjgl.vulkan
Class VkPhysicalDevicePresentIdFeaturesKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDevicePresentIdFeaturesKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDevicePresentIdFeaturesKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure indicating support for present id.Description
If the
VkPhysicalDevicePresentIdFeaturesKHRstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDevicePresentIdFeaturesKHRcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_ID_FEATURES_KHR
Layout
struct VkPhysicalDevicePresentIdFeaturesKHR { VkStructureTypesType(); void *pNext(); VkBool32presentId(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDevicePresentIdFeaturesKHR.BufferAn array ofVkPhysicalDevicePresentIdFeaturesKHRstructs.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDevicePresentIdFeaturesKHR(java.nio.ByteBuffer container)Creates aVkPhysicalDevicePresentIdFeaturesKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDevicePresentIdFeaturesKHRcalloc()Returns a newVkPhysicalDevicePresentIdFeaturesKHRinstance allocated withmemCalloc.static VkPhysicalDevicePresentIdFeaturesKHR.Buffercalloc(int capacity)Returns a newVkPhysicalDevicePresentIdFeaturesKHR.Bufferinstance allocated withmemCalloc.static VkPhysicalDevicePresentIdFeaturesKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevicePresentIdFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDevicePresentIdFeaturesKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevicePresentIdFeaturesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDevicePresentIdFeaturesKHRcreate()Returns a newVkPhysicalDevicePresentIdFeaturesKHRinstance allocated withBufferUtils.static VkPhysicalDevicePresentIdFeaturesKHR.Buffercreate(int capacity)Returns a newVkPhysicalDevicePresentIdFeaturesKHR.Bufferinstance allocated withBufferUtils.static VkPhysicalDevicePresentIdFeaturesKHRcreate(long address)Returns a newVkPhysicalDevicePresentIdFeaturesKHRinstance for the specified memory address.static VkPhysicalDevicePresentIdFeaturesKHR.Buffercreate(long address, int capacity)Create aVkPhysicalDevicePresentIdFeaturesKHR.Bufferinstance at the specified memory.static VkPhysicalDevicePresentIdFeaturesKHRcreateSafe(long address)static VkPhysicalDevicePresentIdFeaturesKHR.BuffercreateSafe(long address, int capacity)static VkPhysicalDevicePresentIdFeaturesKHRmalloc()Returns a newVkPhysicalDevicePresentIdFeaturesKHRinstance allocated withmemAlloc.static VkPhysicalDevicePresentIdFeaturesKHR.Buffermalloc(int capacity)Returns a newVkPhysicalDevicePresentIdFeaturesKHR.Bufferinstance allocated withmemAlloc.static VkPhysicalDevicePresentIdFeaturesKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevicePresentIdFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDevicePresentIdFeaturesKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevicePresentIdFeaturesKHRinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnpresentId(long struct)Unsafe version ofpresentId().static voidnpresentId(long struct, int value)Unsafe version ofpresentId.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.VkPhysicalDevicePresentIdFeaturesKHRpNext(long value)Sets the specified value to thepNext()field.booleanpresentId()indicates that the implementation supports specifying present ID values in theVkPresentIdKHRextension to theVkPresentInfoKHRstruct.VkPhysicalDevicePresentIdFeaturesKHRpresentId(boolean value)Sets the specified value to thepresentId()field.VkPhysicalDevicePresentIdFeaturesKHRset(int sType, long pNext, boolean presentId)Initializes this struct with the specified values.VkPhysicalDevicePresentIdFeaturesKHRset(VkPhysicalDevicePresentIdFeaturesKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDevicePresentIdFeaturesKHRsType(int value)Sets the specified value to thesType()field.VkPhysicalDevicePresentIdFeaturesKHRsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_ID_FEATURES_KHRvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDevicePresentIdFeaturesKHR
public VkPhysicalDevicePresentIdFeaturesKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDevicePresentIdFeaturesKHRinstance 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.
-
presentId
public boolean presentId()
indicates that the implementation supports specifying present ID values in theVkPresentIdKHRextension to theVkPresentInfoKHRstruct.
-
sType
public VkPhysicalDevicePresentIdFeaturesKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDevicePresentIdFeaturesKHR sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_ID_FEATURES_KHRvalue to thesType()field.
-
pNext
public VkPhysicalDevicePresentIdFeaturesKHR pNext(long value)
Sets the specified value to thepNext()field.
-
presentId
public VkPhysicalDevicePresentIdFeaturesKHR presentId(boolean value)
Sets the specified value to thepresentId()field.
-
set
public VkPhysicalDevicePresentIdFeaturesKHR set(int sType, long pNext, boolean presentId)
Initializes this struct with the specified values.
-
set
public VkPhysicalDevicePresentIdFeaturesKHR set(VkPhysicalDevicePresentIdFeaturesKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDevicePresentIdFeaturesKHR malloc()
Returns a newVkPhysicalDevicePresentIdFeaturesKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDevicePresentIdFeaturesKHR calloc()
Returns a newVkPhysicalDevicePresentIdFeaturesKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDevicePresentIdFeaturesKHR create()
Returns a newVkPhysicalDevicePresentIdFeaturesKHRinstance allocated withBufferUtils.
-
create
public static VkPhysicalDevicePresentIdFeaturesKHR create(long address)
Returns a newVkPhysicalDevicePresentIdFeaturesKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDevicePresentIdFeaturesKHR createSafe(long address)
-
malloc
public static VkPhysicalDevicePresentIdFeaturesKHR.Buffer malloc(int capacity)
Returns a newVkPhysicalDevicePresentIdFeaturesKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDevicePresentIdFeaturesKHR.Buffer calloc(int capacity)
Returns a newVkPhysicalDevicePresentIdFeaturesKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDevicePresentIdFeaturesKHR.Buffer create(int capacity)
Returns a newVkPhysicalDevicePresentIdFeaturesKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDevicePresentIdFeaturesKHR.Buffer create(long address, int capacity)
Create aVkPhysicalDevicePresentIdFeaturesKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDevicePresentIdFeaturesKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDevicePresentIdFeaturesKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevicePresentIdFeaturesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDevicePresentIdFeaturesKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevicePresentIdFeaturesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDevicePresentIdFeaturesKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevicePresentIdFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDevicePresentIdFeaturesKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevicePresentIdFeaturesKHR.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().
-
npresentId
public static int npresentId(long struct)
Unsafe version ofpresentId().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
npresentId
public static void npresentId(long struct, int value)Unsafe version ofpresentId.
-
-