yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Yong HeFix `GetAttributeAtVertex` for spirv and glsl targets. (#4334)6d5ef9b65

master
308 B13 linesraw
1//TEST:SIMPLE(filecheck=CHECK): -target spirv
2
3struct VertexOutput
4{
5    float color;
6}
7
8[shader("fragment")]
9float4 fsmain(VertexOutput vout) : SV_Target
10{
11    // CHECK: ([[# @LINE+1]]): error 39027
12    return GetAttributeAtVertex(vout.color, 0); // error: color must be decorated with `nointerpolation`.
13}