23662668dd
Speculate that we can modify the SSA value in-place. As long as it is not used after the modify, this is fine. Also need to make sure we don't attempt to RMW something that is impossible to modify.
28 lines
421 B
GLSL
28 lines
421 B
GLSL
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
|
|
using namespace metal;
|
|
|
|
struct UBO
|
|
{
|
|
packed_float3 color;
|
|
float v;
|
|
};
|
|
|
|
struct main0_out
|
|
{
|
|
float4 FragColor [[color(0)]];
|
|
};
|
|
|
|
fragment main0_out main0(constant UBO& _15 [[buffer(0)]])
|
|
{
|
|
main0_out out = {};
|
|
float4 _36 = float4(1.0);
|
|
_36.x = _15.color[0];
|
|
_36.y = _15.color[1];
|
|
_36.z = _15.color[2];
|
|
out.FragColor = _36;
|
|
return out;
|
|
}
|
|
|