Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions spec/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1903,6 +1903,7 @@ interface GPUAdapterInfo {
readonly attribute DOMString description;
readonly attribute unsigned long subgroupMinSize;
readonly attribute unsigned long subgroupMaxSize;
readonly attribute boolean isFallbackAdapter;
};
</script>

Expand Down Expand Up @@ -1945,6 +1946,10 @@ interface GPUAdapterInfo {
::
If the {{GPUFeatureName/"subgroups"}} feature is supported, the maximum
supported [=builtin-value/subgroup size=] for the [=adapter=].

: <dfn>isFallbackAdapter</dfn>
::
Whether the [=adapter=] is a [=fallback adapter=].
</dl>

<div algorithm data-timeline=content>
Expand Down Expand Up @@ -1989,6 +1994,8 @@ interface GPUAdapterInfo {
for the property which do not distinguish different devices, but are still usable
(e.g. use the default value of 128 for all devices).

1. Set |adapterInfo|.{{GPUAdapterInfo/isFallbackAdapter}} to |adapter|.{{adapter/[[fallback]]}}.

1. Return |adapterInfo|.
</div>

Expand Down Expand Up @@ -2559,8 +2566,9 @@ enum GPUPowerPreference {
{{GPURequestAdapterOptions/forceFallbackAdapter}} is set to `false` and either no
other appropriate [=adapter=] is available or the user agent chooses to return a
[=fallback adapter=]. Developers that wish to prevent their applications from running on
[=fallback adapters=] should check the {{GPUAdapter}}.{{GPUAdapter/isFallbackAdapter}}
attribute prior to requesting a {{GPUDevice}}.
[=fallback adapters=] should check the
{{GPUAdapter/info}}.{{GPUAdapterInfo/isFallbackAdapter}} attribute prior
to requesting a {{GPUDevice}}.

: <dfn>xrCompatible</dfn>
::
Expand Down Expand Up @@ -2599,7 +2607,6 @@ interface GPUAdapter {
[SameObject] readonly attribute GPUSupportedFeatures features;
[SameObject] readonly attribute GPUSupportedLimits limits;
[SameObject] readonly attribute GPUAdapterInfo info;
readonly attribute boolean isFallbackAdapter;

Promise<GPUDevice> requestDevice(optional GPUDeviceDescriptor descriptor = {});
};
Expand Down Expand Up @@ -2636,10 +2643,6 @@ interface GPUAdapter {
</div>
</div>

: <dfn>isFallbackAdapter</dfn>
::
Returns the value of {{GPUAdapter/[[adapter]]}}.{{adapter/[[fallback]]}}.

: <dfn>\[[adapter]]</dfn>, of type [=adapter=], readonly
::
The [=adapter=] to which this {{GPUAdapter}} refers.
Expand Down