yum-mirror/slang

Making it easier to work with shaders

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

Yong HeReport error on nested functions. (#5792)525412c67

master
304 B12 linesraw
1//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK):
2
3
4struct VertexOutput{float Input;}
5float4 fragmentMain(VertexOutput vertex) : SV_Target
6{
7   // CHECK: ([[# @LINE+1]]): error 30102
8  static float GetValue(int val) { return vertex.Input; } // Simplified example
9  float a = GetValue(vertex.Input);
10
11  // etc
12}