Class GPUSupportedFeatures
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The GPUSupportedFeatures interface of the {{domxref("WebGPU API", "WebGPU API", "", "nocode")}} is a Set-like object that describes additional functionality supported by a GPUAdapter.
[Value("GPUSupportedFeatures")]
public class GPUSupportedFeatures
- Inheritance
-
GPUSupportedFeatures
- Inherited Members
Remarks
The GPUSupportedFeatures object for the current adapter is accessed via the Features property — use this to test what features your current setup supports. To create a GPUDevice with a specific feature enabled, you need to specify it in the requiredFeatures array of the RequestDevice(GPUDeviceDescriptor) descriptor.
You should note that not all features will be available to WebGPU in all browsers that support it, even if the features are supported by the underlying hardware. This could be due to constraints in the underlying system, browser, or adapter. For example:
If you are hoping to take advantage of a specific additional feature in a WebGPU app, thorough testing is advised.
-The WebGPU API
-The specification Feature Index
Constructors
GPUSupportedFeatures()
public GPUSupportedFeatures()