mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 00:39:53 +00:00
5af5222249
- https://github.com/KhronosGroup/SPIRV-Cross/commit/ 66a407285e36a0f772e3209cb86ded6e3d900f6a
44 lines
777 B
GLSL
44 lines
777 B
GLSL
struct CBO_1
|
|
{
|
|
float4 a;
|
|
float4 b;
|
|
float4 c;
|
|
float4 d;
|
|
};
|
|
|
|
ConstantBuffer<CBO_1> cbo[2][4] : register(b4, space0);
|
|
cbuffer push
|
|
{
|
|
float4 push_a : packoffset(c0);
|
|
float4 push_b : packoffset(c1);
|
|
float4 push_c : packoffset(c2);
|
|
float4 push_d : packoffset(c3);
|
|
};
|
|
|
|
static float4 FragColor;
|
|
|
|
struct SPIRV_Cross_Output
|
|
{
|
|
float4 FragColor : SV_Target0;
|
|
};
|
|
|
|
void frag_main()
|
|
{
|
|
FragColor = cbo[1][2].a;
|
|
FragColor += cbo[1][2].b;
|
|
FragColor += cbo[1][2].c;
|
|
FragColor += cbo[1][2].d;
|
|
FragColor += push_a;
|
|
FragColor += push_b;
|
|
FragColor += push_c;
|
|
FragColor += push_d;
|
|
}
|
|
|
|
SPIRV_Cross_Output main()
|
|
{
|
|
frag_main();
|
|
SPIRV_Cross_Output stage_output;
|
|
stage_output.FragColor = FragColor;
|
|
return stage_output;
|
|
}
|