Outputting integral type from fragment shader causes Vulkan validation error #2270
Labels
area: back-end
Outputs of shader conversion
kind: bug
Something isn't working
lang: SPIR-V
Binary SPIR-V input and output
Milestone
Validation layer trips off since Naga emits
flat
qualifier for integer outputs of fragment shader.Note that wgpu correctly forces output to be an integer type when writing to a "true" (non-snorm/unorm) target.
Happens with a shader like this:
More details in this comment rerun-io/rerun#1532 (comment)
Not familiar with Naga's code, but it looks like there's a check missing here for fragment outputs https://github.com/gfx-rs/naga/blob/master/src/back/spv/writer.rs#L1415
The text was updated successfully, but these errors were encountered: