yum-mirror/slang

Making it easier to work with shaders

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

Theresa FoleySplit overloaded uses of RefType in front-end (#8427)c35b763f8

master
370 B15 linesraw
1//TEST:SIMPLE(filecheck=CHECK): -target spirv
2//TEST:SIMPLE(filecheck=CHECK): -target spirv -emit-spirv-via-glsl -dump-intermediates
3
4// CHECK: OpDecorate %vout_vertexID{{.*}} PerVertexKHR
5
6struct VertexOutput
7{
8    nointerpolation int vertexID;
9}
10
11[shader("fragment")]
12float4 fsmain(VertexOutput vout) : SV_Target
13{
14    return GetAttributeAtVertex(vout.vertexID, 0);
15}