Package org.lwjgl.vulkan
Class VkPhysicalDeviceDriverPropertiesKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceDriverPropertiesKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkPhysicalDeviceDriverPropertiesKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure containing driver identification information.Description
driverID
must be immutable for a given driver across instances, processes, driver versions, and system reboots.Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIES_KHR
See Also
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension specific structure.driverID
– a unique identifier for the driver of the physical device.driverName[VK_MAX_DRIVER_NAME_SIZE_KHR]
– a null-terminated UTF-8 string containing the name of the driver.driverInfo[VK_MAX_DRIVER_INFO_SIZE_KHR]
– a null-terminated UTF-8 string containing additional information about the driver.conformanceVersion
– the version of the Vulkan conformance test this driver is conformant against (seeVkConformanceVersionKHR
).
Layout
struct VkPhysicalDeviceDriverPropertiesKHR { VkStructureType sType; void * pNext; VkDriverIdKHR driverID; char driverName[VK_MAX_DRIVER_NAME_SIZE_KHR]; char driverInfo[VK_MAX_DRIVER_INFO_SIZE_KHR];
VkConformanceVersionKHR
conformanceVersion; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkPhysicalDeviceDriverPropertiesKHR.Buffer
An array ofVkPhysicalDeviceDriverPropertiesKHR
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
CONFORMANCEVERSION
DRIVERID
DRIVERINFO
DRIVERNAME
PNEXTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceDriverPropertiesKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceDriverPropertiesKHR
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 VkPhysicalDeviceDriverPropertiesKHR
calloc()
Returns a newVkPhysicalDeviceDriverPropertiesKHR
instance allocated withmemCalloc
.static VkPhysicalDeviceDriverPropertiesKHR.Buffer
calloc(int capacity)
Returns a newVkPhysicalDeviceDriverPropertiesKHR.Buffer
instance allocated withmemCalloc
.static VkPhysicalDeviceDriverPropertiesKHR
callocStack()
Returns a newVkPhysicalDeviceDriverPropertiesKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceDriverPropertiesKHR.Buffer
callocStack(int capacity)
Returns a newVkPhysicalDeviceDriverPropertiesKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceDriverPropertiesKHR.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceDriverPropertiesKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceDriverPropertiesKHR
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceDriverPropertiesKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.VkConformanceVersionKHR
conformanceVersion()
Returns aVkConformanceVersionKHR
view of theconformanceVersion
field.static VkPhysicalDeviceDriverPropertiesKHR
create()
Returns a newVkPhysicalDeviceDriverPropertiesKHR
instance allocated withBufferUtils
.static VkPhysicalDeviceDriverPropertiesKHR.Buffer
create(int capacity)
Returns a newVkPhysicalDeviceDriverPropertiesKHR.Buffer
instance allocated withBufferUtils
.static VkPhysicalDeviceDriverPropertiesKHR
create(long address)
Returns a newVkPhysicalDeviceDriverPropertiesKHR
instance for the specified memory address.static VkPhysicalDeviceDriverPropertiesKHR.Buffer
create(long address, int capacity)
Create aVkPhysicalDeviceDriverPropertiesKHR.Buffer
instance at the specified memory.static VkPhysicalDeviceDriverPropertiesKHR
createSafe(long address)
static VkPhysicalDeviceDriverPropertiesKHR.Buffer
createSafe(long address, int capacity)
int
driverID()
Returns the value of thedriverID
field.java.nio.ByteBuffer
driverInfo()
Returns aByteBuffer
view of thedriverInfo
field.java.lang.String
driverInfoString()
Decodes the null-terminated string stored in thedriverInfo
field.java.nio.ByteBuffer
driverName()
Returns aByteBuffer
view of thedriverName
field.java.lang.String
driverNameString()
Decodes the null-terminated string stored in thedriverName
field.static VkPhysicalDeviceDriverPropertiesKHR
malloc()
Returns a newVkPhysicalDeviceDriverPropertiesKHR
instance allocated withmemAlloc
.static VkPhysicalDeviceDriverPropertiesKHR.Buffer
malloc(int capacity)
Returns a newVkPhysicalDeviceDriverPropertiesKHR.Buffer
instance allocated withmemAlloc
.static VkPhysicalDeviceDriverPropertiesKHR
mallocStack()
Returns a newVkPhysicalDeviceDriverPropertiesKHR
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceDriverPropertiesKHR.Buffer
mallocStack(int capacity)
Returns a newVkPhysicalDeviceDriverPropertiesKHR.Buffer
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceDriverPropertiesKHR.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceDriverPropertiesKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkPhysicalDeviceDriverPropertiesKHR
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceDriverPropertiesKHR
instance allocated on the specifiedMemoryStack
.static VkConformanceVersionKHR
nconformanceVersion(long struct)
Unsafe version ofconformanceVersion()
.static int
ndriverID(long struct)
Unsafe version ofdriverID()
.static java.nio.ByteBuffer
ndriverInfo(long struct)
Unsafe version ofdriverInfo()
.static java.lang.String
ndriverInfoString(long struct)
Unsafe version ofdriverInfoString()
.static java.nio.ByteBuffer
ndriverName(long struct)
Unsafe version ofdriverName()
.static java.lang.String
ndriverNameString(long struct)
Unsafe version ofdriverNameString()
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.long
pNext()
Returns the value of thepNext
field.VkPhysicalDeviceDriverPropertiesKHR
pNext(long value)
Sets the specified value to thepNext
field.VkPhysicalDeviceDriverPropertiesKHR
set(int sType, long pNext)
Initializes this struct with the specified values.VkPhysicalDeviceDriverPropertiesKHR
set(VkPhysicalDeviceDriverPropertiesKHR src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkPhysicalDeviceDriverPropertiesKHR
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceDriverPropertiesKHR
public VkPhysicalDeviceDriverPropertiesKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceDriverPropertiesKHR
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.
-
driverID
public int driverID()
Returns the value of thedriverID
field.
-
driverName
public java.nio.ByteBuffer driverName()
Returns aByteBuffer
view of thedriverName
field.
-
driverNameString
public java.lang.String driverNameString()
Decodes the null-terminated string stored in thedriverName
field.
-
driverInfo
public java.nio.ByteBuffer driverInfo()
Returns aByteBuffer
view of thedriverInfo
field.
-
driverInfoString
public java.lang.String driverInfoString()
Decodes the null-terminated string stored in thedriverInfo
field.
-
conformanceVersion
public VkConformanceVersionKHR conformanceVersion()
Returns aVkConformanceVersionKHR
view of theconformanceVersion
field.
-
sType
public VkPhysicalDeviceDriverPropertiesKHR sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkPhysicalDeviceDriverPropertiesKHR pNext(long value)
Sets the specified value to thepNext
field.
-
set
public VkPhysicalDeviceDriverPropertiesKHR set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceDriverPropertiesKHR set(VkPhysicalDeviceDriverPropertiesKHR src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceDriverPropertiesKHR malloc()
Returns a newVkPhysicalDeviceDriverPropertiesKHR
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceDriverPropertiesKHR calloc()
Returns a newVkPhysicalDeviceDriverPropertiesKHR
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceDriverPropertiesKHR create()
Returns a newVkPhysicalDeviceDriverPropertiesKHR
instance allocated withBufferUtils
.
-
create
public static VkPhysicalDeviceDriverPropertiesKHR create(long address)
Returns a newVkPhysicalDeviceDriverPropertiesKHR
instance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceDriverPropertiesKHR createSafe(long address)
-
malloc
public static VkPhysicalDeviceDriverPropertiesKHR.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceDriverPropertiesKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPhysicalDeviceDriverPropertiesKHR.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceDriverPropertiesKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceDriverPropertiesKHR.Buffer create(int capacity)
Returns a newVkPhysicalDeviceDriverPropertiesKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceDriverPropertiesKHR.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceDriverPropertiesKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceDriverPropertiesKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceDriverPropertiesKHR mallocStack()
Returns a newVkPhysicalDeviceDriverPropertiesKHR
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPhysicalDeviceDriverPropertiesKHR callocStack()
Returns a newVkPhysicalDeviceDriverPropertiesKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceDriverPropertiesKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceDriverPropertiesKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceDriverPropertiesKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceDriverPropertiesKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceDriverPropertiesKHR.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceDriverPropertiesKHR.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceDriverPropertiesKHR.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceDriverPropertiesKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceDriverPropertiesKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceDriverPropertiesKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceDriverPropertiesKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceDriverPropertiesKHR.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()
.
-
ndriverID
public static int ndriverID(long struct)
Unsafe version ofdriverID()
.
-
ndriverName
public static java.nio.ByteBuffer ndriverName(long struct)
Unsafe version ofdriverName()
.
-
ndriverNameString
public static java.lang.String ndriverNameString(long struct)
Unsafe version ofdriverNameString()
.
-
ndriverInfo
public static java.nio.ByteBuffer ndriverInfo(long struct)
Unsafe version ofdriverInfo()
.
-
ndriverInfoString
public static java.lang.String ndriverInfoString(long struct)
Unsafe version ofdriverInfoString()
.
-
nconformanceVersion
public static VkConformanceVersionKHR nconformanceVersion(long struct)
Unsafe version ofconformanceVersion()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
-