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.
1767
1786
* <div algorithm data-timeline=const>
1768
-
* Two {@link GPUTextureFormat}s `format` and `viewFormat` are <dfn dfn for="">texture view format compatible</dfn> if:
1787
+
* Two {@link GPUTextureFormat}s `format` and `viewFormat` are <dfn dfn for="">texture view format compatible</dfn> on a given `device` if:
1769
1788
* - `format` equals `viewFormat`, or
1770
-
* - `format` and `viewFormat` differ only in whether they are `srgb` formats (have the `-srgb` suffix).
1789
+
* - `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"`.
1771
1790
* </div>
1772
1791
*/
1773
1792
viewFormats?: Iterable<GPUTextureFormat>;
1774
1793
/**
1775
-
* **PROPOSED** in [Compatibility Mode](https://github.com/gpuweb/gpuweb/blob/main/proposals/compatibility-mode.md).
1776
-
*
1777
-
* > [In compatibility mode,]
1778
-
* > When specifying a texture, a textureBindingViewDimension property
1779
-
* > determines the views which can be bound from that texture for sampling.
1780
-
* > Binding a view of a different dimension for sampling than specified at
1781
-
* > texture creation time will cause a validation error.
1794
+
* <div class=compatmode>
1795
+
* On devices without {@link GPUFeatureName} `"core-features-and-limits"`,
1796
+
* views created from this texture must have this as their {@link GPUTextureViewDescriptor#dimension}.
1797
+
* If not specified, a default is chosen.
1798
+
* </div>
1799
+
* On devices with {@link GPUFeatureName} `"core-features-and-limits"`,
1800
+
* this is ignored, and there is no such restriction.
0 commit comments