glslang/Test/hlsl.function.frag
Dawid Lorenz 4ae01c5f41 Add support for pre and post HLSL qualifier validation
The change makes it possible to define a const variable after the marked
type. Example "float const"
2023-07-11 13:36:38 -04:00

30 lines
387 B
GLSL

float4 fun0()
{
return 1.0f;
}
float4 fun2(float4 const col)
{
return (1, 2, 3, 4);
}
uint fun3(const float4 col)
{
return 7;
}
float4 fun4(uint id1, uniform uint id2)
{
return id1 * id2;
}
float4 fun1(int index)
{
uint entityId = fun3(fun2(fun0()));
return fun4(entityId, entityId);
}
int main() : SV_TARGET
{
return fun1;
}