Skip to content

Commit 1f640d2

Browse files
Move GPUAdapter isFallbackAdapter attribute to GPUAdapterInfo
1 parent d521e5a commit 1f640d2

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

spec/index.bs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1903,6 +1903,7 @@ interface GPUAdapterInfo {
19031903
readonly attribute DOMString description;
19041904
readonly attribute unsigned long subgroupMinSize;
19051905
readonly attribute unsigned long subgroupMaxSize;
1906+
readonly attribute boolean isFallbackAdapter;
19061907
};
19071908
</script>
19081909

@@ -1945,6 +1946,10 @@ interface GPUAdapterInfo {
19451946
::
19461947
If the {{GPUFeatureName/"subgroups"}} feature is supported, the maximum
19471948
supported [=builtin-value/subgroup size=] for the [=adapter=].
1949+
1950+
: <dfn>isFallbackAdapter</dfn>
1951+
::
1952+
Whether the [=adapter=] is a [=fallback adapter=].
19481953
</dl>
19491954

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

1997+
1. Set |adapterInfo|.{{GPUAdapterInfo/isFallbackAdapter}} to |adapter|.{{adapter/[[fallback]]}}.
1998+
19921999
1. Return |adapterInfo|.
19932000
</div>
19942001

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

25652573
: <dfn>xrCompatible</dfn>
25662574
::
@@ -2599,7 +2607,6 @@ interface GPUAdapter {
25992607
[SameObject] readonly attribute GPUSupportedFeatures features;
26002608
[SameObject] readonly attribute GPUSupportedLimits limits;
26012609
[SameObject] readonly attribute GPUAdapterInfo info;
2602-
readonly attribute boolean isFallbackAdapter;
26032610

26042611
Promise<GPUDevice> requestDevice(optional GPUDeviceDescriptor descriptor = {});
26052612
};
@@ -2636,10 +2643,6 @@ interface GPUAdapter {
26362643
</div>
26372644
</div>
26382645

2639-
: <dfn>isFallbackAdapter</dfn>
2640-
::
2641-
Returns the value of {{GPUAdapter/[[adapter]]}}.{{adapter/[[fallback]]}}.
2642-
26432646
: <dfn>\[[adapter]]</dfn>, of type [=adapter=], readonly
26442647
::
26452648
The [=adapter=] to which this {{GPUAdapter}} refers.

0 commit comments

Comments
 (0)