Package org.lwjgl.vulkan
Class VkPhysicalDeviceDriverProperties
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceDriverProperties
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceDriverPropertiesKHR
public class VkPhysicalDeviceDriverProperties extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure containing driver identification information.Description
If the
VkPhysicalDeviceDriverPropertiesstructure is included in thepNextchain of theVkPhysicalDeviceProperties2structure passed toGetPhysicalDeviceProperties2, it is filled in with each corresponding implementation-dependent property.These are properties of the driver corresponding to a physical device.
driverIDmust be immutable for a given driver across instances, processes, driver versions, and system reboots.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIES
See Also
Layout
struct VkPhysicalDeviceDriverProperties { VkStructureTypesType(); void *pNext(); VkDriverIddriverID(); chardriverName()[VK_MAX_DRIVER_NAME_SIZE]; chardriverInfo()[VK_MAX_DRIVER_INFO_SIZE];VkConformanceVersionconformanceVersion(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceDriverProperties.BufferAn array ofVkPhysicalDeviceDriverPropertiesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCONFORMANCEVERSION
DRIVERID
DRIVERINFO
DRIVERNAME
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceDriverProperties(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceDriverPropertiesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceDriverPropertiescalloc()Returns a newVkPhysicalDeviceDriverPropertiesinstance allocated withmemCalloc.static VkPhysicalDeviceDriverProperties.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceDriverProperties.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceDriverProperties.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceDriverProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceDriverPropertiescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceDriverPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.VkConformanceVersionconformanceVersion()the version of the Vulkan conformance test this driver is conformant against (seeVkConformanceVersion).static VkPhysicalDeviceDriverPropertiescreate()Returns a newVkPhysicalDeviceDriverPropertiesinstance allocated withBufferUtils.static VkPhysicalDeviceDriverProperties.Buffercreate(int capacity)Returns a newVkPhysicalDeviceDriverProperties.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceDriverPropertiescreate(long address)Returns a newVkPhysicalDeviceDriverPropertiesinstance for the specified memory address.static VkPhysicalDeviceDriverProperties.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceDriverProperties.Bufferinstance at the specified memory.static VkPhysicalDeviceDriverPropertiescreateSafe(long address)static VkPhysicalDeviceDriverProperties.BuffercreateSafe(long address, int capacity)intdriverID()a unique identifier for the driver of the physical device.java.nio.ByteBufferdriverInfo()an array ofMAX_DRIVER_INFO_SIZEcharcontaining a null-terminated UTF-8 string with additional information about the driver.java.lang.StringdriverInfoString()an array ofMAX_DRIVER_INFO_SIZEcharcontaining a null-terminated UTF-8 string with additional information about the driver.java.nio.ByteBufferdriverName()an array ofMAX_DRIVER_NAME_SIZEcharcontaining a null-terminated UTF-8 string which is the name of the driver.java.lang.StringdriverNameString()an array ofMAX_DRIVER_NAME_SIZEcharcontaining a null-terminated UTF-8 string which is the name of the driver.static VkPhysicalDeviceDriverPropertiesmalloc()Returns a newVkPhysicalDeviceDriverPropertiesinstance allocated withmemAlloc.static VkPhysicalDeviceDriverProperties.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceDriverProperties.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceDriverProperties.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceDriverProperties.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceDriverPropertiesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceDriverPropertiesinstance allocated on the specifiedMemoryStack.static VkConformanceVersionnconformanceVersion(long struct)Unsafe version ofconformanceVersion().static intndriverID(long struct)Unsafe version ofdriverID().static java.nio.ByteBufferndriverInfo(long struct)Unsafe version ofdriverInfo().static java.lang.StringndriverInfoString(long struct)Unsafe version ofdriverInfoString().static java.nio.ByteBufferndriverName(long struct)Unsafe version ofdriverName().static java.lang.StringndriverNameString(long struct)Unsafe version ofdriverNameString().static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.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.VkPhysicalDeviceDriverPropertiespNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceDriverPropertiesset(int sType, long pNext)Initializes this struct with the specified values.VkPhysicalDeviceDriverPropertiesset(VkPhysicalDeviceDriverProperties src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceDriverPropertiessType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceDriverPropertiessType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIESvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceDriverProperties
public VkPhysicalDeviceDriverProperties(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceDriverPropertiesinstance 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.
-
driverID
public int driverID()
a unique identifier for the driver of the physical device.
-
driverName, driverNameString
public java.nio.ByteBuffer driverName() public java.lang.String driverNameString()
an array ofMAX_DRIVER_NAME_SIZEcharcontaining a null-terminated UTF-8 string which is the name of the driver.
-
driverInfo, driverInfoString
public java.nio.ByteBuffer driverInfo() public java.lang.String driverInfoString()
an array ofMAX_DRIVER_INFO_SIZEcharcontaining a null-terminated UTF-8 string with additional information about the driver.
-
conformanceVersion
public VkConformanceVersion conformanceVersion()
the version of the Vulkan conformance test this driver is conformant against (seeVkConformanceVersion).
-
sType
public VkPhysicalDeviceDriverProperties sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceDriverProperties sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIESvalue to thesType()field.
-
pNext
public VkPhysicalDeviceDriverProperties pNext(long value)
Sets the specified value to thepNext()field.
-
set
public VkPhysicalDeviceDriverProperties set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceDriverProperties set(VkPhysicalDeviceDriverProperties src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceDriverProperties malloc()
Returns a newVkPhysicalDeviceDriverPropertiesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceDriverProperties calloc()
Returns a newVkPhysicalDeviceDriverPropertiesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceDriverProperties create()
Returns a newVkPhysicalDeviceDriverPropertiesinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceDriverProperties create(long address)
Returns a newVkPhysicalDeviceDriverPropertiesinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceDriverProperties createSafe(long address)
-
malloc
public static VkPhysicalDeviceDriverProperties.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceDriverProperties.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceDriverProperties.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceDriverProperties.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceDriverProperties.Buffer create(int capacity)
Returns a newVkPhysicalDeviceDriverProperties.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceDriverProperties.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceDriverProperties.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceDriverProperties.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceDriverProperties malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceDriverPropertiesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceDriverProperties calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceDriverPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceDriverProperties.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceDriverProperties.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceDriverProperties.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceDriverProperties.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().
-
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 VkConformanceVersion 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.
-
-