Harbor

branch main
showing the latest snapshot on main
workflow_branch_output.hlsl 396 B · Plain text
gpu/shader/tests/golden/workflow_branch_output.hlsl 0644 Raw
struct _shade_Input {
	float4 _sv_position : SV_Position;
	float2 uv : TEXCOORD0;
};

struct _shade_Output {
	float4 color : SV_Target0;
};

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