mirror of
https://github.com/libretro/RetroArch.git
synced 2024-05-20 13:27:22 -04:00
da29639d70
git-subtree-dir: deps/SPIRV-Cross git-subtree-split: f3a75d1d4ba6b559d5c89550f800a518baad522d
29 lines
496 B
GLSL
29 lines
496 B
GLSL
uniform float4 UBO[15];
|
|
|
|
static float4 gl_Position;
|
|
static int2 aIndex;
|
|
|
|
struct SPIRV_Cross_Input
|
|
{
|
|
int2 aIndex : TEXCOORD0;
|
|
};
|
|
|
|
struct SPIRV_Cross_Output
|
|
{
|
|
float4 gl_Position : SV_Position;
|
|
};
|
|
|
|
void vert_main()
|
|
{
|
|
gl_Position = UBO[aIndex.x * 5 + aIndex.y * 1 + 0];
|
|
}
|
|
|
|
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
|
|
{
|
|
aIndex = stage_input.aIndex;
|
|
vert_main();
|
|
SPIRV_Cross_Output stage_output;
|
|
stage_output.gl_Position = gl_Position;
|
|
return stage_output;
|
|
}
|