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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe 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 aVkPhysicalDevicePropertiesinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintstatic VkPhysicalDevicePropertiescalloc()Returns a newVkPhysicalDevicePropertiesinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkPhysicalDeviceProperties.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkPhysicalDeviceProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDevicePropertiescalloc(MemoryStack stack) Returns a newVkPhysicalDevicePropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDevicePropertiesDeprecated.callocStack(int capacity) Deprecated.callocStack(int capacity, MemoryStack stack) Deprecated.static VkPhysicalDevicePropertiescallocStack(MemoryStack stack) Deprecated.static VkPhysicalDevicePropertiescreate()Returns a newVkPhysicalDevicePropertiesinstance allocated withBufferUtils.create(int capacity) Returns a newVkPhysicalDeviceProperties.Bufferinstance allocated withBufferUtils.static VkPhysicalDevicePropertiescreate(long address) Returns a newVkPhysicalDevicePropertiesinstance for the specified memory address.create(long address, int capacity) Create aVkPhysicalDeviceProperties.Bufferinstance at the specified memory.static @Nullable VkPhysicalDevicePropertiescreateSafe(long address) static @Nullable VkPhysicalDeviceProperties.BuffercreateSafe(long address, int capacity) intdeviceID()intintlimits()static VkPhysicalDevicePropertiesmalloc()Returns a newVkPhysicalDevicePropertiesinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkPhysicalDeviceProperties.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkPhysicalDeviceProperties.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDevicePropertiesmalloc(MemoryStack stack) Returns a newVkPhysicalDevicePropertiesinstance allocated on the specifiedMemoryStack.static VkPhysicalDevicePropertiesDeprecated.mallocStack(int capacity) Deprecated.mallocStack(int capacity, MemoryStack stack) Deprecated.static VkPhysicalDevicePropertiesmallocStack(MemoryStack stack) Deprecated.static intnapiVersion(long struct) Unsafe version ofapiVersion().static intndeviceID(long struct) Unsafe version ofdeviceID().static ByteBufferndeviceName(long struct) Unsafe version ofdeviceName().static StringndeviceNameString(long struct) Unsafe version ofdeviceNameString().static intndeviceType(long struct) Unsafe version ofdeviceType().static intndriverVersion(long struct) Unsafe version ofdriverVersion().static VkPhysicalDeviceLimitsnlimits(long struct) Unsafe version oflimits().static ByteBuffernpipelineCacheUUID(long struct) Unsafe version ofpipelineCacheUUID().static bytenpipelineCacheUUID(long struct, int index) Unsafe version ofpipelineCacheUUID.nsparseProperties(long struct) Unsafe version ofsparseProperties().static intnvendorID(long struct) Unsafe version ofvendorID().bytepipelineCacheUUID(int index) intsizeof()Returnssizeof(struct).intvendorID()Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aVkPhysicalDevicePropertiesinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkPhysicalDeviceProperties>
-
apiVersion
public int apiVersion()- Returns:
- the value of the
apiVersionfield.
-
driverVersion
public int driverVersion()- Returns:
- the value of the
driverVersionfield.
-
vendorID
public int vendorID()- Returns:
- the value of the
vendorIDfield.
-
deviceID
public int deviceID()- Returns:
- the value of the
deviceIDfield.
-
deviceType
public int deviceType()- Returns:
- the value of the
deviceTypefield.
-
deviceName
- Returns:
- a
ByteBufferview of thedeviceNamefield.
-
deviceNameString
- Returns:
- the null-terminated string stored in the
deviceNamefield.
-
pipelineCacheUUID
- Returns:
- a
ByteBufferview of thepipelineCacheUUIDfield.
-
pipelineCacheUUID
public byte pipelineCacheUUID(int index) - Returns:
- the value at the specified index of the
pipelineCacheUUIDfield.
-
limits
- Returns:
- a
VkPhysicalDeviceLimitsview of thelimitsfield.
-
sparseProperties
- Returns:
- a
VkPhysicalDeviceSparsePropertiesview of thesparsePropertiesfield.
-
malloc
Returns a newVkPhysicalDevicePropertiesinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkPhysicalDevicePropertiesinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkPhysicalDevicePropertiesinstance allocated withBufferUtils. -
create
Returns a newVkPhysicalDevicePropertiesinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkPhysicalDeviceProperties.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkPhysicalDeviceProperties.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkPhysicalDeviceProperties.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkPhysicalDeviceProperties.Bufferinstance 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 newVkPhysicalDevicePropertiesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkPhysicalDevicePropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkPhysicalDeviceProperties.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkPhysicalDeviceProperties.Bufferinstance allocated on the specifiedMemoryStackand 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().
-