gfx-rs / wgpu

A cross-platform, safe, pure-Rust graphics API.
https://wgpu.rs
Apache License 2.0
11.65k stars 863 forks source link

Testing multiple versions of the generated shaders #4345

Open Gordon-F opened 3 years ago

Gordon-F commented 3 years ago

We need to find a way how we can test different versions of generated shaders.

GLSL (es/no es/different version) and HLSL (shader models) requires it.

Currently, we testing only 1 version: GLSL - 300es. HLSL - SM 5.0.

kvark commented 3 years ago

I think it's fine. We can just diversify the tests. I.e. if you have 20 tests and 10 of them do ES and the other 10 do desktop, then this is good enough. Same for HLSL outputs.