SPIRV-Cross/reference/shaders-msl-no-opt/asm/frag/fixup-entry-point-identifier.nomain.asm.frag
Hans-Kristian Arntzen c4ff129fe3 MSL: Handle reserved identifiers for entry point.
We only considered invalid names, and overwrote the alias for the
function. The correct fix is to replace illegal names early, do the
reserved fixup, then copy back alias to entry point name.
2021-01-04 09:40:11 +01:00

18 lines
243 B
JavaScript

#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct _5ma_in_out
{
float4 FragColor [[color(0)]];
};
fragment _5ma_in_out _5ma_in()
{
_5ma_in_out out = {};
out.FragColor = float4(1.0);
return out;
}