glslang/Test/hlsl.function.frag
Dawid Lorenz 44779f508a 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
399 B
GLSL

float4 fun0()
{
return 1.0f;
}
float4 fun2(float4 const col)
{
return (1.0f, 2.0f, 3.0f, 4.0f);
}
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;
}