Skip to content

Commit a54202b

Browse files
Remove deprecated GPUAdapter isFallbackAdapter (#183)
The GPUAdapterInfo isFallbackAdapter attribute has been implemented both in [Chromium](https://issues.chromium.org/issues/409259074) and [Firefox](https://bugzilla.mozilla.org/show_bug.cgi?id=1955057) but not in Safari yet. @mwyrzykowski Is that something you can address so that we can move forward with this PR.
1 parent 8efa989 commit a54202b

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

dist/index.d.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2074,13 +2074,6 @@ interface GPUAdapter {
20742074
* </div>
20752075
*/
20762076
readonly info: GPUAdapterInfo;
2077-
/**
2078-
* Returns the value of {@link GPUAdapter#[[adapter]]}.{@link adapter#[[fallback]]}.
2079-
*
2080-
* @deprecated Use {@link GPUAdapterInfo#isFallbackAdapter}.
2081-
* (Note if it's not available, it will be `undefined` which is still falsy.)
2082-
*/
2083-
readonly isFallbackAdapter?: boolean;
20842077
/**
20852078
* Requests a device from the adapter.
20862079
* This is a one-time action: if a device is returned successfully,
@@ -2141,10 +2134,8 @@ interface GPUAdapterInfo {
21412134
readonly subgroupMaxSize?: number;
21422135
/**
21432136
* Whether the adapter is a fallback adapter.
2144-
*
2145-
* TODO: Temporarily optional until all browsers have implemented it.
21462137
**/
2147-
readonly isFallbackAdapter?: boolean;
2138+
readonly isFallbackAdapter: boolean;
21482139
}
21492140

21502141
declare var GPUAdapterInfo: {

0 commit comments

Comments
 (0)