Welcome to mirror list, hosted at ThFree Co, Russian Federation.

reserved-function-identifier.asm.frag « frag « asm « shaders-hlsl-no-opt « reference - github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1f1f6fac107c2edfa39473b2a0d38d1a66651241 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
static float FragColor;

struct SPIRV_Cross_Output
{
    float FragColor : SV_Target0;
};

float _mat3(float a)
{
    return a + 1.0f;
}

float _RESERVED_IDENTIFIER_FIXUP_gl_Foo(int a)
{
    return float(a) + 1.0f;
}

void frag_main()
{
    float param = 2.0f;
    int param_1 = 4;
    FragColor = _mat3(param) + _RESERVED_IDENTIFIER_FIXUP_gl_Foo(param_1);
}

SPIRV_Cross_Output main()
{
    frag_main();
    SPIRV_Cross_Output stage_output;
    stage_output.FragColor = FragColor;
    return stage_output;
}