Class DxgiAdapterInfo

java.lang.Object
oshi.driver.windows.DxgiAdapterInfo

public final class DxgiAdapterInfo extends Object
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 Details

    • DxgiAdapterInfo

      public DxgiAdapterInfo(String description, int vendorId, int deviceId, long dedicatedVideoMemory, int luidLowPart, int luidHighPart)
      Parameters:
      description - adapter description string from DXGI_ADAPTER_DESC.Description
      vendorId - PCI vendor ID
      deviceId - PCI device ID
      dedicatedVideoMemory - dedicated video memory in bytes
      luidLowPart - low 32 bits of the adapter LUID
      luidHighPart - high 32 bits of the adapter LUID
  • Method Details

    • getDescription

      public String 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

      public String toString()
      Overrides:
      toString in class Object