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.NativeResourceStructure containing driver identification information.Description
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_KHR
See Also
Member documentation
sType– the type of this structure.pNext–NULLor 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];VkConformanceVersionKHRconformanceVersion; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceDriverPropertiesKHR.BufferAn array ofVkPhysicalDeviceDriverPropertiesKHRstructs.
-
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 VkPhysicalDeviceDriverPropertiesKHR(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceDriverPropertiesKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceDriverPropertiesKHRcalloc()Returns a newVkPhysicalDeviceDriverPropertiesKHRinstance allocated withmemCalloc.static VkPhysicalDeviceDriverPropertiesKHR.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceDriverPropertiesKHR.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceDriverPropertiesKHRcallocStack()Returns a newVkPhysicalDeviceDriverPropertiesKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceDriverPropertiesKHR.BuffercallocStack(int capacity)Returns a newVkPhysicalDeviceDriverPropertiesKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceDriverPropertiesKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceDriverPropertiesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceDriverPropertiesKHRcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceDriverPropertiesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.VkConformanceVersionKHRconformanceVersion()Returns aVkConformanceVersionKHRview of theconformanceVersionfield.static VkPhysicalDeviceDriverPropertiesKHRcreate()Returns a newVkPhysicalDeviceDriverPropertiesKHRinstance allocated withBufferUtils.static VkPhysicalDeviceDriverPropertiesKHR.Buffercreate(int capacity)Returns a newVkPhysicalDeviceDriverPropertiesKHR.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceDriverPropertiesKHRcreate(long address)Returns a newVkPhysicalDeviceDriverPropertiesKHRinstance for the specified memory address.static VkPhysicalDeviceDriverPropertiesKHR.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceDriverPropertiesKHR.Bufferinstance at the specified memory.static VkPhysicalDeviceDriverPropertiesKHRcreateSafe(long address)static VkPhysicalDeviceDriverPropertiesKHR.BuffercreateSafe(long address, int capacity)intdriverID()Returns the value of thedriverIDfield.java.nio.ByteBufferdriverInfo()Returns aByteBufferview of thedriverInfofield.java.lang.StringdriverInfoString()Decodes the null-terminated string stored in thedriverInfofield.java.nio.ByteBufferdriverName()Returns aByteBufferview of thedriverNamefield.java.lang.StringdriverNameString()Decodes the null-terminated string stored in thedriverNamefield.static VkPhysicalDeviceDriverPropertiesKHRmalloc()Returns a newVkPhysicalDeviceDriverPropertiesKHRinstance allocated withmemAlloc.static VkPhysicalDeviceDriverPropertiesKHR.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceDriverPropertiesKHR.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceDriverPropertiesKHRmallocStack()Returns a newVkPhysicalDeviceDriverPropertiesKHRinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceDriverPropertiesKHR.BuffermallocStack(int capacity)Returns a newVkPhysicalDeviceDriverPropertiesKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceDriverPropertiesKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceDriverPropertiesKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceDriverPropertiesKHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceDriverPropertiesKHRinstance allocated on the specifiedMemoryStack.static VkConformanceVersionKHRnconformanceVersion(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()Returns the value of thepNextfield.VkPhysicalDeviceDriverPropertiesKHRpNext(long value)Sets the specified value to thepNextfield.VkPhysicalDeviceDriverPropertiesKHRset(int sType, long pNext)Initializes this struct with the specified values.VkPhysicalDeviceDriverPropertiesKHRset(VkPhysicalDeviceDriverPropertiesKHR src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkPhysicalDeviceDriverPropertiesKHRsType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkPhysicalDeviceDriverPropertiesKHR
public VkPhysicalDeviceDriverPropertiesKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceDriverPropertiesKHRinstance 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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
driverID
public int driverID()
Returns the value of thedriverIDfield.
-
driverName
public java.nio.ByteBuffer driverName()
Returns aByteBufferview of thedriverNamefield.
-
driverNameString
public java.lang.String driverNameString()
Decodes the null-terminated string stored in thedriverNamefield.
-
driverInfo
public java.nio.ByteBuffer driverInfo()
Returns aByteBufferview of thedriverInfofield.
-
driverInfoString
public java.lang.String driverInfoString()
Decodes the null-terminated string stored in thedriverInfofield.
-
conformanceVersion
public VkConformanceVersionKHR conformanceVersion()
Returns aVkConformanceVersionKHRview of theconformanceVersionfield.
-
sType
public VkPhysicalDeviceDriverPropertiesKHR sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPhysicalDeviceDriverPropertiesKHR pNext(long value)
Sets the specified value to thepNextfield.
-
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 newVkPhysicalDeviceDriverPropertiesKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceDriverPropertiesKHR calloc()
Returns a newVkPhysicalDeviceDriverPropertiesKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceDriverPropertiesKHR create()
Returns a newVkPhysicalDeviceDriverPropertiesKHRinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceDriverPropertiesKHR create(long address)
Returns a newVkPhysicalDeviceDriverPropertiesKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceDriverPropertiesKHR createSafe(long address)
-
malloc
public static VkPhysicalDeviceDriverPropertiesKHR.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceDriverPropertiesKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceDriverPropertiesKHR.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceDriverPropertiesKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceDriverPropertiesKHR.Buffer create(int capacity)
Returns a newVkPhysicalDeviceDriverPropertiesKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceDriverPropertiesKHR.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceDriverPropertiesKHR.Bufferinstance 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 newVkPhysicalDeviceDriverPropertiesKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPhysicalDeviceDriverPropertiesKHR callocStack()
Returns a newVkPhysicalDeviceDriverPropertiesKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceDriverPropertiesKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceDriverPropertiesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceDriverPropertiesKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceDriverPropertiesKHRinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceDriverPropertiesKHR.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceDriverPropertiesKHR.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.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 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.
-
-