mirror of
https://github.com/libretro/RetroArch
synced 2025-02-03 08:54:13 +00:00
22 lines
247 B
GLSL
22 lines
247 B
GLSL
|
#version 450
|
||
|
|
||
|
struct Registers
|
||
|
{
|
||
|
float foo;
|
||
|
};
|
||
|
|
||
|
uniform Registers registers;
|
||
|
|
||
|
layout(location = 0) out float FragColor;
|
||
|
|
||
|
float add_value(float v, float w)
|
||
|
{
|
||
|
return v + w;
|
||
|
}
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
FragColor = add_value(10.0, registers.foo);
|
||
|
}
|
||
|
|