Skip to content

Creating TextureDimension::D1 depth/stencil formats makes metal panic (and does not fail) #2323

@Wumpf

Description

@Wumpf

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

Metadata

Metadata

Assignees

Labels

area: validationIssues related to validation, diagnostics, and error handlinghelp requiredWe need community help to make this happen.type: enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions