Package org.lwjgl.vulkan
Class VkPhysicalDeviceProperties
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class VkPhysicalDeviceProperties
extends Struct<VkPhysicalDeviceProperties>
implements NativeResource
struct VkPhysicalDeviceProperties {
uint32_t apiVersion;
uint32_t driverVersion;
uint32_t vendorID;
uint32_t deviceID;
VkPhysicalDeviceType deviceType;
char deviceName[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE];
uint8_t pipelineCacheUUID[VK_UUID_SIZE];
{@link VkPhysicalDeviceLimits VkPhysicalDeviceLimits} limits;
{@link VkPhysicalDeviceSparseProperties VkPhysicalDeviceSparseProperties} sparseProperties;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVkPhysicalDeviceProperties
(ByteBuffer container) Creates aVkPhysicalDeviceProperties
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
static VkPhysicalDeviceProperties
calloc()
Returns a newVkPhysicalDeviceProperties
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkPhysicalDeviceProperties.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkPhysicalDeviceProperties.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceProperties
calloc
(MemoryStack stack) Returns a newVkPhysicalDeviceProperties
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceProperties
Deprecated.callocStack
(int capacity) Deprecated.callocStack
(int capacity, MemoryStack stack) Deprecated.static VkPhysicalDeviceProperties
callocStack
(MemoryStack stack) Deprecated.static VkPhysicalDeviceProperties
create()
Returns a newVkPhysicalDeviceProperties
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkPhysicalDeviceProperties.Buffer
instance allocated withBufferUtils
.static VkPhysicalDeviceProperties
create
(long address) Returns a newVkPhysicalDeviceProperties
instance for the specified memory address.create
(long address, int capacity) Create aVkPhysicalDeviceProperties.Buffer
instance at the specified memory.static @Nullable VkPhysicalDeviceProperties
createSafe
(long address) static @Nullable VkPhysicalDeviceProperties.Buffer
createSafe
(long address, int capacity) int
deviceID()
int
int
limits()
static VkPhysicalDeviceProperties
malloc()
Returns a newVkPhysicalDeviceProperties
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkPhysicalDeviceProperties.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkPhysicalDeviceProperties.Buffer
instance allocated on the specifiedMemoryStack
.static VkPhysicalDeviceProperties
malloc
(MemoryStack stack) Returns a newVkPhysicalDeviceProperties
instance allocated on the specifiedMemoryStack
.static VkPhysicalDeviceProperties
Deprecated.mallocStack
(int capacity) Deprecated.mallocStack
(int capacity, MemoryStack stack) Deprecated.static VkPhysicalDeviceProperties
mallocStack
(MemoryStack stack) Deprecated.static int
napiVersion
(long struct) Unsafe version ofapiVersion()
.static int
ndeviceID
(long struct) Unsafe version ofdeviceID()
.static ByteBuffer
ndeviceName
(long struct) Unsafe version ofdeviceName()
.static String
ndeviceNameString
(long struct) Unsafe version ofdeviceNameString()
.static int
ndeviceType
(long struct) Unsafe version ofdeviceType()
.static int
ndriverVersion
(long struct) Unsafe version ofdriverVersion()
.static VkPhysicalDeviceLimits
nlimits
(long struct) Unsafe version oflimits()
.static ByteBuffer
npipelineCacheUUID
(long struct) Unsafe version ofpipelineCacheUUID()
.static byte
npipelineCacheUUID
(long struct, int index) Unsafe version ofpipelineCacheUUID
.nsparseProperties
(long struct) Unsafe version ofsparseProperties()
.static int
nvendorID
(long struct) Unsafe version ofvendorID()
.byte
pipelineCacheUUID
(int index) int
sizeof()
Returnssizeof(struct)
.int
vendorID()
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
APIVERSION
public static final int APIVERSIONThe struct member offsets. -
DRIVERVERSION
public static final int DRIVERVERSIONThe struct member offsets. -
VENDORID
public static final int VENDORIDThe struct member offsets. -
DEVICEID
public static final int DEVICEIDThe struct member offsets. -
DEVICETYPE
public static final int DEVICETYPEThe struct member offsets. -
DEVICENAME
public static final int DEVICENAMEThe struct member offsets. -
PIPELINECACHEUUID
public static final int PIPELINECACHEUUIDThe struct member offsets. -
LIMITS
public static final int LIMITSThe struct member offsets. -
SPARSEPROPERTIES
public static final int SPARSEPROPERTIESThe struct member offsets.
-
-
Constructor Details
-
VkPhysicalDeviceProperties
Creates aVkPhysicalDeviceProperties
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkPhysicalDeviceProperties>
-
apiVersion
public int apiVersion()- Returns:
- the value of the
apiVersion
field.
-
driverVersion
public int driverVersion()- Returns:
- the value of the
driverVersion
field.
-
vendorID
public int vendorID()- Returns:
- the value of the
vendorID
field.
-
deviceID
public int deviceID()- Returns:
- the value of the
deviceID
field.
-
deviceType
public int deviceType()- Returns:
- the value of the
deviceType
field.
-
deviceName
- Returns:
- a
ByteBuffer
view of thedeviceName
field.
-
deviceNameString
- Returns:
- the null-terminated string stored in the
deviceName
field.
-
pipelineCacheUUID
- Returns:
- a
ByteBuffer
view of thepipelineCacheUUID
field.
-
pipelineCacheUUID
public byte pipelineCacheUUID(int index) - Returns:
- the value at the specified index of the
pipelineCacheUUID
field.
-
limits
- Returns:
- a
VkPhysicalDeviceLimits
view of thelimits
field.
-
sparseProperties
- Returns:
- a
VkPhysicalDeviceSparseProperties
view of thesparseProperties
field.
-
malloc
Returns a newVkPhysicalDeviceProperties
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkPhysicalDeviceProperties
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkPhysicalDeviceProperties
instance allocated withBufferUtils
. -
create
Returns a newVkPhysicalDeviceProperties
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkPhysicalDeviceProperties.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkPhysicalDeviceProperties.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkPhysicalDeviceProperties.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkPhysicalDeviceProperties.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
@Deprecated public static VkPhysicalDeviceProperties.Buffer mallocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
@Deprecated public static VkPhysicalDeviceProperties.Buffer callocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newVkPhysicalDeviceProperties
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkPhysicalDeviceProperties
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkPhysicalDeviceProperties.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkPhysicalDeviceProperties.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
napiVersion
public static int napiVersion(long struct) Unsafe version ofapiVersion()
. -
ndriverVersion
public static int ndriverVersion(long struct) Unsafe version ofdriverVersion()
. -
nvendorID
public static int nvendorID(long struct) Unsafe version ofvendorID()
. -
ndeviceID
public static int ndeviceID(long struct) Unsafe version ofdeviceID()
. -
ndeviceType
public static int ndeviceType(long struct) Unsafe version ofdeviceType()
. -
ndeviceName
Unsafe version ofdeviceName()
. -
ndeviceNameString
Unsafe version ofdeviceNameString()
. -
npipelineCacheUUID
Unsafe version ofpipelineCacheUUID()
. -
npipelineCacheUUID
public static byte npipelineCacheUUID(long struct, int index) Unsafe version ofpipelineCacheUUID
. -
nlimits
Unsafe version oflimits()
. -
nsparseProperties
Unsafe version ofsparseProperties()
.
-