Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d011a7e

Browse files
committed
Compatibility Mode: update to use featureLevel.
Now that GPUAdapter.featureLevel has landed in the core spec, remove the GPUAdapter.compatibilityMode IDL change from the proposal. Explain that setting GPUAdapter.featureLevel to "compatibility" enables Compatibility Mode validation. Change the GPUAdapter.isCompatibilityMode boolean to a "featureLevel" DOMString.
1 parent d248f85 commit d011a7e

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

proposals/compatibility-mode.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,17 @@ Since WebGPU Compatibility mode is a subset of WebGPU, all valid Compatibility m
1616

1717
## WebGPU Spec Changes
1818

19-
```webidl
20-
partial dictionary GPURequestAdapterOptions {
21-
boolean compatibilityMode = false;
22-
}
23-
```
19+
When calling `GPU.requestAdapter()`, passing `featureLevel = "compatibility"` in the `GPURequestAdapterOptions` will indicate to the User Agent to select the Compatibility subset of WebGPU. Any Devices created from the resulting Adapter on supporting UAs will support only Compatibility mode. Calls to APIs unsupported by Compatibility mode will result in validation errors.
2420

25-
When calling `GPU.RequestAdapter()`, passing `compatibilityMode = true` in the `GPURequestAdapterOptions` will indicate to the User Agent to select the Compatibility subset of WebGPU. Any Devices created from the resulting Adapter on supporting UAs will support only Compatibility mode. Calls to APIs unsupported by Compatibility mode will result in validation errors.
26-
27-
Note that a supporting User Agent may return a `compatibilityMode = true` Adapter which is backed by a fully WebGPU-capable hardware adapter, such as D3D12, Metal or Vulkan, so long as it validates all subsequent API calls made on the Adapter and the objects it vends against the Compatibility subset.
21+
Note that a supporting User Agent may return a `featureLevel = "compatibility"` Adapter which is backed by a fully WebGPU-capable hardware adapter, such as D3D12, Metal or Vulkan, so long as it validates all subsequent API calls made on the Adapter and the objects it vends against the Compatibility subset.
2822

2923
```webidl
3024
partial interface GPUAdapter {
31-
readonly attribute boolean isCompatibilityMode;
25+
readonly attribute DOMstring featureLevel;
3226
}
3327
```
3428

35-
As a convenience to the developer, the Adapter returned will have the `isCompatibilityMode` property set to `true`.
36-
29+
As a convenience to the developer, the Adapter returned will have the `featureLevel` property set to `"compatibility"`.
3730

3831
```webidl
3932
partial dictionary GPUTextureDescriptor {

0 commit comments

Comments
 (0)