mirror of
https://github.com/libretro/RetroArch
synced 2025-02-21 00:40:09 +00:00
22 lines
331 B
GLSL
22 lines
331 B
GLSL
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
|
|
using namespace metal;
|
|
|
|
constant float _17[5] = {1.0, 2.0, 3.0, 4.0, 5.0};
|
|
|
|
struct main0_out
|
|
{
|
|
float4 FragColor [[color(0)]];
|
|
};
|
|
|
|
fragment main0_out main0()
|
|
{
|
|
main0_out out = {};
|
|
for (int i = 0; i < 4; i++, out.FragColor += float4(_17[i]))
|
|
{
|
|
}
|
|
return out;
|
|
}
|
|
|