Harbor

branch main
showing the latest snapshot on main
workflow_overwrite_output.msl 419 B · Plain text
shader/tests/golden/workflow_overwrite_output.msl 0644 Raw
#include <metal_stdlib>
using namespace metal;

struct _shade_Input {
	float2 uv [[user(locn0)]];
};

struct _shade_Output {
	float4 color [[user(locn0)]];
};

fragment _shade_Output shade(_shade_Input input [[stage_in]]) {
	_shade_Output __luma_output;
	__luma_output.color = float4(input.uv, 0.0, 1.0);
	if ((input.uv.x > 0.5)) {
		__luma_output.color = float4(1.0, input.uv.y, 0.0, 1.0);
	}
	return __luma_output;
}