mirror of
https://github.com/libretro/RetroArch
synced 2025-02-03 17:54:04 +00:00
501fd33b68
git-subtree-dir: deps/SPIRV-Cross git-subtree-split: d4b0625cbd7377e720b4fa1d63e6a3c09da5db63
31 lines
502 B
GLSL
31 lines
502 B
GLSL
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
|
|
using namespace metal;
|
|
|
|
struct UBO
|
|
{
|
|
float4x4 uMVP;
|
|
};
|
|
|
|
struct main0_in
|
|
{
|
|
float3 aNormal [[attribute(1)]];
|
|
float4 aVertex [[attribute(0)]];
|
|
};
|
|
|
|
struct main0_out
|
|
{
|
|
float3 vNormal [[user(locn0)]];
|
|
float4 gl_Position [[position]];
|
|
};
|
|
|
|
vertex main0_out main0(main0_in in [[stage_in]], constant UBO& _16 [[buffer(0)]])
|
|
{
|
|
main0_out out = {};
|
|
out.gl_Position = _16.uMVP * in.aVertex;
|
|
out.vNormal = in.aNormal;
|
|
return out;
|
|
}
|
|
|