Class DxgiAdapterInfo

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

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

      public String toString()
      Overrides:
      toString in class Object