mirror of
https://github.com/libretro/RetroArch
synced 2025-02-08 15:40:14 +00:00
33 lines
433 B
GLSL
33 lines
433 B
GLSL
|
#include <metal_stdlib>
|
||
|
#include <simd/simd.h>
|
||
|
|
||
|
using namespace metal;
|
||
|
|
||
|
struct Str
|
||
|
{
|
||
|
float4x4 foo;
|
||
|
};
|
||
|
|
||
|
struct UBO1
|
||
|
{
|
||
|
Str foo;
|
||
|
};
|
||
|
|
||
|
struct UBO2
|
||
|
{
|
||
|
Str foo;
|
||
|
};
|
||
|
|
||
|
struct main0_out
|
||
|
{
|
||
|
float4 FragColor [[color(0)]];
|
||
|
};
|
||
|
|
||
|
fragment main0_out main0(constant UBO1& ubo1 [[buffer(0)]], constant UBO2& ubo0 [[buffer(1)]])
|
||
|
{
|
||
|
main0_out out = {};
|
||
|
out.FragColor = transpose(ubo1.foo.foo)[0] + ubo0.foo.foo[0];
|
||
|
return out;
|
||
|
}
|
||
|
|