mirror of
https://github.com/RPCS3/glslang.git
synced 2024-12-03 00:28:28 +00:00
23 lines
431 B
GLSL
Executable File
23 lines
431 B
GLSL
Executable File
struct Test
|
|
{
|
|
float4 memVar;
|
|
static float4 staticMemFun(float4 a) : SV_Position
|
|
{
|
|
return 2 * a;
|
|
}
|
|
static int staticMemFun(int a) : SV_Position
|
|
{
|
|
return 2 + a;
|
|
}
|
|
int i;
|
|
};
|
|
|
|
float4 main() : SV_Target0
|
|
{
|
|
Test test;
|
|
float4 f4 = float4(1.0,1.0,1.0,1.0);
|
|
f4 += Test::staticMemFun(float4(5.0f,5.0f,5.0f,5.0f));
|
|
f4 += Test::staticMemFun(7);
|
|
return f4;
|
|
}
|