Class DxgiAdapterInfo
java.lang.Object
oshi.driver.windows.DxgiAdapterInfo
Immutable snapshot of a DXGI adapter's identity and dedicated video memory.
Populated by WindowsDxgi.queryAdapters() and used by
oshi.hardware.platform.windows.WindowsGraphicsCard to supply accurate VRAM values.
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) -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the dedicated video memory in bytes.Returns the adapter description string.intReturns the PCI device ID.intReturns the high 32 bits of the adapter LUID.intReturns the low 32 bits of the adapter LUID.intReturns the PCI vendor ID.toString()
-
Constructor Details
-
DxgiAdapterInfo
public DxgiAdapterInfo(String description, int vendorId, int deviceId, long dedicatedVideoMemory, int luidLowPart, int luidHighPart) - 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
Returns the adapter description string.- Returns:
- adapter description string
-
getVendorId
public int getVendorId()Returns the PCI vendor ID.- Returns:
- PCI vendor ID
-
getDeviceId
public int getDeviceId()Returns the PCI device ID.- Returns:
- PCI device ID
-
getDedicatedVideoMemory
public long getDedicatedVideoMemory()Returns the dedicated video memory in bytes.- Returns:
- dedicated video memory in bytes
-
getLuidLowPart
public int getLuidLowPart()Returns the low 32 bits of the adapter LUID.- Returns:
- LUID low part
-
getLuidHighPart
public int getLuidHighPart()Returns the high 32 bits of the adapter LUID.- Returns:
- LUID high part
-
toString
-