Harbor

branch main
showing the latest snapshot on main
workflow_branch_output.wgsl 395 B · Plain text
gpu/shader/tests/golden/workflow_branch_output.wgsl 0644 Raw
struct _shade_Input {
	@location(0) uv: vec2<f32>,
}

struct _shade_Output {
	@location(0) color: vec4<f32>,
}

@fragment
fn shade(input: _shade_Input) -> _shade_Output {
	var __luma_output: _shade_Output;
	if ((input.uv.x > 0.5)) {
		__luma_output.color = vec4<f32>(1.0, input.uv.y, 0.0, 1.0);
	} else {
		__luma_output.color = vec4<f32>(0.0, input.uv.y, 1.0, 1.0);
	}
	return __luma_output;
}