Open aleino-nv opened 2 days ago
@csyonghe I haven't looked into this yet, but from the name it sounds like Slang is emitting code where EnsureCompileTimeEval_getValue_0()
is supposed to be evaluated by WGSL at compile time.
Is this something Slang does? WGSL has some support for something similar to "constexpr", but I think they have to be explicitly marked as such.
I think this is supposed to be inlined and evaluated by slang so it never actually appears in the generated wgsl code.
Failing tests:
tests/language-feature/constants/static-const-in-generic-interface.slang
Example output: