Unchecked shader creation is not honored on metal #3136
Labels
api: metal
Issues with Metal
area: validation
Issues related to validation, diagnostics, and error handling
help required
We need community help to make this happen.
type: bug
Something isn't working
Description
Even when shaders are created with
create_shader_module_unchecked
, bounds checks are still in place in the Metal backend.Repro steps
cargo run
Note: this is a repro of gfx-rs/naga#1848. It was suggested to use the unchecked variant of shader creation, but that workaround is blocked by this bug.
Expected vs observed behavior
Extra materials
I did a little digging, and it seems like there is logic in the vulkan back-end to plumb
runtime_checks == false
to the appropriate nagaBoundsCheckPolicy
values, but that appears to be missing in the metal back-end; the corresponding code seems to passnaga_options
to the writer directly. Perhaps a better fix would be settingnaga_options
upstream rather than having to do it separately each back-end.Platform
macOS 12.6, wgpu 0.14 and HEAD.
The text was updated successfully, but these errors were encountered: