mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 00:39:53 +00:00
34 lines
562 B
GLSL
34 lines
562 B
GLSL
static const int Value = 2;
|
|
|
|
cbuffer _15 : register(b0)
|
|
{
|
|
float4 _15_samples[Value] : packoffset(c0);
|
|
};
|
|
|
|
static float4 FragColor;
|
|
static int Index;
|
|
|
|
struct SPIRV_Cross_Input
|
|
{
|
|
nointerpolation int Index : TEXCOORD0;
|
|
};
|
|
|
|
struct SPIRV_Cross_Output
|
|
{
|
|
float4 FragColor : SV_Target0;
|
|
};
|
|
|
|
void frag_main()
|
|
{
|
|
FragColor = _15_samples[Index];
|
|
}
|
|
|
|
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
|
|
{
|
|
Index = stage_input.Index;
|
|
frag_main();
|
|
SPIRV_Cross_Output stage_output;
|
|
stage_output.FragColor = FragColor;
|
|
return stage_output;
|
|
}
|