Class DxgiAdapterInfo
java.lang.Object
oshi.driver.common.windows.gpu.DxgiAdapterInfo
Immutable snapshot of a DXGI adapter's identity and dedicated video memory.
DedicatedVideoMemory from DXGI_ADAPTER_DESC is the authoritative Windows API source for dedicated GPU
memory; it is not subject to the 2 GiB cap that affects the 32-bit registry value
HardwareInformation.MemorySize.
-
Constructor Summary
ConstructorsConstructorDescriptionDxgiAdapterInfo(String description, int vendorId, int deviceId, long dedicatedVideoMemory, int luidLowPart, int luidHighPart) Creates a new DxgiAdapterInfo instance. -
Method Summary
Modifier and TypeMethodDescriptionlongGets the dedicated video memory in bytes.Gets the adapter description string.intGets the PCI device ID.intGets the high 32 bits of the adapter LUID.intGets the low 32 bits of the adapter LUID.intGets the PCI vendor ID.toString()
-
Constructor Details
-
DxgiAdapterInfo
public DxgiAdapterInfo(String description, int vendorId, int deviceId, long dedicatedVideoMemory, int luidLowPart, int luidHighPart) Creates a new DxgiAdapterInfo instance.- Parameters:
description- adapter description string fromDXGI_ADAPTER_DESC.DescriptionvendorId- PCI vendor IDdeviceId- PCI device IDdedicatedVideoMemory- dedicated video memory in bytesluidLowPart- low 32 bits of the adapter LUIDluidHighPart- high 32 bits of the adapter LUID
-
-
Method Details
-
getDescription
Gets the adapter description string.- Returns:
- the adapter description string
-
getVendorId
public int getVendorId()Gets the PCI vendor ID.- Returns:
- the PCI vendor ID
-
getDeviceId
public int getDeviceId()Gets the PCI device ID.- Returns:
- the PCI device ID
-
getDedicatedVideoMemory
public long getDedicatedVideoMemory()Gets the dedicated video memory in bytes.- Returns:
- the dedicated video memory in bytes
-
getLuidLowPart
public int getLuidLowPart()Gets the low 32 bits of the adapter LUID.- Returns:
- the low 32 bits of the adapter LUID
-
getLuidHighPart
public int getLuidHighPart()Gets the high 32 bits of the adapter LUID.- Returns:
- the high 32 bits of the adapter LUID
-
toString
-