KhronosGroup / glslang

Khronos-reference front end for GLSL/ESSL, partial front end for HLSL, and a SPIR-V generator.
Other
2.9k stars 815 forks source link

Constant generated with two RelaxedPrecision decorations #3627

Closed s-perron closed 4 days ago

s-perron commented 1 week ago

If there are to global constants with the same value, the same OpConstant will be reused for both. However, the decoration will be added once for each. This is invalid spir-v.

https://shader-playground.timjones.io/001f515dcbc39de283c41893ee3e33a4