Table of Contents

Class GPUAdapterInfo

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The GPUAdapterInfo interface of the {{domxref("WebGPU API", "WebGPU API", "", "nocode")}} contains identifying information about a GPUAdapter.

[Value("GPUAdapterInfo")]
public class GPUAdapterInfo
Inheritance
GPUAdapterInfo
Inherited Members

Remarks

An adapter's GPUAdapterInfo can be retrieved using the Info property of the adapter itself, or the AdapterInfo property of a device that originated from the adapter.

This object allows developers to access specific details about the user's GPU so that they can preemptively apply workarounds for GPU-specific bugs, or provide different codepaths to better suit different GPU architectures. Providing such information does present a security risk — it could be used for fingerprinting — therefore the information shared is kept at a minimum, and different browser vendors are likely to share different information types and granularities.

-Info
-The WebGPU API

See also on MDN

Constructors

GPUAdapterInfo()

public GPUAdapterInfo()

Properties

Architecture

The architecture read-only property of the
GPUAdapterInfo interface returns the name of the family or class of GPUs the adapter belongs to, or an empty string if it is not available.

[Value("architecture")]
public string Architecture { get; }

Property Value

string

A string.

Remarks

Description

The description read-only property of the
GPUAdapterInfo interface returns a human-readable string describing the adapter, or an empty string if it is not available.

[Value("description")]
public string Description { get; }

Property Value

string

A string.

Remarks

Device

The device read-only property of the
GPUAdapterInfo interface returns a vendor-specific identifier for the adapter, or an empty string if it is not available.

[Value("device")]
public string Device { get; }

Property Value

string

A string.

Remarks

Vendor

The vendor read-only property of the
GPUAdapterInfo interface returns the name of the adapter vendor, or an empty string if it is not available.

[Value("vendor")]
public string Vendor { get; }

Property Value

string

A string.

Remarks