Description
Creating a 1 dimensional depth(/stencil) format does not cause a failure but makes metal panic:
-[MTLTextureDescriptorInternal validateWithDevice:]:1248: failed assertion `Texture Descriptor Validation
MTLTextureDescriptor: depth/stencil pixel formats require texture type of MTLTextureType2D[Array] or MTLTextureTypeCube[Array].
Similar to #2045, #2057
Repro steps
As described. Seen when running clear_texture test on Metal with a depth format after depth formats got enabled as in #2307
Expected vs observed behavior
Should give a specialized error.
This is also lacking in the WebGPU spec I believe.
Extra materials
n/a
Platform
MacOS
Description
Creating a 1 dimensional depth(/stencil) format does not cause a failure but makes metal panic:
Similar to #2045, #2057
Repro steps
As described. Seen when running
clear_texturetest on Metal with a depth format after depth formats got enabled as in #2307Expected vs observed behavior
Should give a specialized error.
This is also lacking in the WebGPU spec I believe.
Extra materials
n/a
Platform
MacOS