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