read-only storage binding in VS results in scary warning in MSL #1761
Labels
area: back-end
Outputs of shader conversion
kind: bug
Something isn't working
lang: Metal
Metal Shading Language
I have a binding like this in a WGSL shader
@group(0) @binding(1) var<storage,read> particle_buffer: ParticleBufferReadonly;
when translated to MSL, it becomes this parameter to vs_main:
, device ParticleBufferReadonly& particle_buffer [[buffer(1)]]
which then results in this scary warning:
This seems related to this PR #1711
If I revert the part of the PR that changes the function
to_msl_name
back to:then the parameter to the vs_main function becomes:
, constant ParticleBufferReadonly& particle_buffer [[buffer(1)]]
and the warning disappears.
I'm not sure if the warning has an actual negative effect or not, it doesn't seem to yet but I'm still fixing other problems. I only noticed this because the shader was failing MSL compilation for a different reason.
The text was updated successfully, but these errors were encountered: