mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 05:43:34 +00:00
- https://github.com/KhronosGroup/SPIRV-Cross/commit/ 66a407285e36a0f772e3209cb86ded6e3d900f6a
20 lines
411 B
GLSL
20 lines
411 B
GLSL
#version 310 es
|
|
precision mediump float;
|
|
precision highp int;
|
|
|
|
layout(location = 0) out vec4 FragColor;
|
|
layout(location = 0) flat in mediump int counter;
|
|
|
|
void main()
|
|
{
|
|
FragColor = vec4(0.0);
|
|
mediump int i = 0;
|
|
mediump uint j = 1u;
|
|
for (; (i < 10) && (int(j) < int(20u)); i += counter, j += uint(counter))
|
|
{
|
|
FragColor += vec4(float(i));
|
|
FragColor += vec4(float(j));
|
|
}
|
|
}
|
|
|