mirror of
https://github.com/libretro/RetroArch
synced 2025-02-01 09:32:58 +00:00
5af5222249
- https://github.com/KhronosGroup/SPIRV-Cross/commit/ 66a407285e36a0f772e3209cb86ded6e3d900f6a
26 lines
403 B
GLSL
26 lines
403 B
GLSL
#version 310 es
|
|
precision highp float;
|
|
|
|
struct Inputs
|
|
{
|
|
vec4 a;
|
|
vec2 b;
|
|
};
|
|
|
|
layout(location = 0) in Inputs vin;
|
|
layout(location = 0) out vec4 FragColor;
|
|
|
|
void main()
|
|
{
|
|
// Read struct once.
|
|
Inputs v0 = vin;
|
|
// Read struct again.
|
|
Inputs v1 = vin;
|
|
|
|
// Read members individually.
|
|
vec4 a = vin.a;
|
|
vec4 b = vin.b.xxyy;
|
|
|
|
FragColor = v0.a + v0.b.xxyy + v1.a + v1.b.yyxx + a + b;
|
|
}
|