You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Formats in this list must be texture view format compatible with the texture format.
1733
1752
* <div algorithm data-timeline=const>
1734
-
* Two {@link GPUTextureFormat}s `format` and `viewFormat` are <dfn dfn for="">texture view format compatible</dfn> if:
1753
+
* Two {@link GPUTextureFormat}s `format` and `viewFormat` are <dfn dfn for="">texture view format compatible</dfn> on a given `device` if:
1735
1754
* - `format` equals `viewFormat`, or
1736
-
* - `format` and `viewFormat` differ only in whether they are `srgb` formats (have the `-srgb` suffix).
1755
+
* - `format` and `viewFormat` differ only in whether they are `srgb` formats (have the `-srgb` suffix) and `device.features` list/contains {@link GPUFeatureName} `"core-features-and-limits"`.
1737
1756
* </div>
1738
1757
*/
1739
1758
viewFormats?: Iterable<GPUTextureFormat>;
1759
+
/**
1760
+
* <div class=compatmode>
1761
+
* On devices without {@link GPUFeatureName} `"core-features-and-limits"`,
1762
+
* views created from this texture must have this as their {@link GPUTextureViewDescriptor#dimension}.
1763
+
* If not specified, a default is chosen.
1764
+
* </div>
1765
+
* On devices with {@link GPUFeatureName} `"core-features-and-limits"`,
1766
+
* this is ignored, and there is no such restriction.
0 commit comments