Skip to content

Commit caaf346

Browse files
committed
Define "core" as well, and say "compatibility" shouldn't be used
1 parent d1861ec commit caaf346

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

spec/index.bs

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2288,7 +2288,7 @@ interface GPU {
22882288

22892289
<div class=validusage>
22902290
1. |options|.{{GPURequestAdapterOptions/featureLevel}} |must| be
2291-
`undefined` or `"compatibility"`.
2291+
a [=feature level string=].
22922292
</div>
22932293

22942294
If they are met **and** the user agent chooses to return an adapter:
@@ -2431,7 +2431,7 @@ configuration is suitable for the application.
24312431

24322432
<script type=idl>
24332433
dictionary GPURequestAdapterOptions {
2434-
DOMString featureLevel;
2434+
DOMString featureLevel = "core";
24352435
GPUPowerPreference powerPreference;
24362436
boolean forceFallbackAdapter = false;
24372437
};
@@ -2451,8 +2451,18 @@ enum GPUPowerPreference {
24512451
::
24522452
"Feature level" for the adapter request.
24532453

2454-
Currently, the only allowed values are `undefined` and `"compatibility"`.
2455-
Both have no effect.
2454+
The allowed <dfn dfn for="">feature level string</dfn> values are:
2455+
2456+
<dl dfn-type=dfn dfn-for="feature level string">
2457+
: <dfn noexport>"core"</dfn>
2458+
:: No effect.
2459+
: <dfn noexport>"compatibility"</dfn>
2460+
:: No effect.
2461+
2462+
Note:
2463+
This value is reserved for future use as a way to opt into additional validation restrictions.
2464+
Applications should not use this value at this time.
2465+
</dl>
24562466

24572467
: <dfn>powerPreference</dfn>
24582468
::

0 commit comments

Comments
 (0)