c4ff129fe3
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.
18 lines
243 B
JavaScript
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;
|
|
}
|
|
|