blob: 112a18df586aaf1bc0f942e1050ea0334d4d1fdd [file] [log] [blame]
SKIP: FAILED
../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: buf0 = struct @align(8) {
injectionSwitch:vec2<f32> @offset(0)
}
main_out = struct @align(16) {
x_GLF_color_1:vec4<f32> @offset(0), @location(0)
}
$B1: { # root
%x_7:ptr<uniform, buf0, read> = var @binding_point(0, 0)
%gl_FragCoord:ptr<private, vec4<f32>, read_write> = var
%x_GLF_color:ptr<private, vec4<f32>, read_write> = var
%continue_execution:ptr<private, bool, read_write> = var, true
}
%computePoint_ = func():vec3<f32> {
$B2: {
%6:ptr<uniform, vec2<f32>, read> = access %x_7, 0u
%7:f32 = load_vector_element %6, 0u
%8:ptr<uniform, vec2<f32>, read> = access %x_7, 0u
%9:f32 = load_vector_element %8, 1u
%10:bool = gt %7, %9
if %10 [t: $B3] { # if_1
$B3: { # true
store %continue_execution, false
exit_if # if_1
}
}
ret vec3<f32>(0.0f)
}
}
%main_1 = func():void {
$B4: {
%x_34:ptr<function, bool, read_write> = var, false
loop [b: $B5] { # loop_1
$B5: { # body
%13:vec3<f32> = call %computePoint_
%x_36:vec3<f32> = let %13
%15:f32 = load_vector_element %gl_FragCoord, 0u
%16:bool = lt %15, 0.0f
if %16 [t: $B6] { # if_2
$B6: { # true
store %x_34, true
exit_loop # loop_1
}
}
%17:vec3<f32> = call %computePoint_
%x_45:vec3<f32> = let %17
store %x_GLF_color, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f)
store %x_34, true
exit_loop # loop_1
}
}
ret
}
}
%tint_symbol = @fragment func(%gl_FragCoord_param:vec4<f32> [@position]):main_out {
$B7: {
store %gl_FragCoord, %gl_FragCoord_param
%21:void = call %main_1
%22:vec4<f32> = load %x_GLF_color
%23:main_out = construct %22
%24:bool = load %continue_execution
%25:bool = eq %24, false
if %25 [t: $B8] { # if_3
$B8: { # true
terminate_invocation
}
}
ret %23
}
}
unhandled variable address space
********************************************************************
* The tint shader compiler has encountered an unexpected error. *
* *
* Please help us fix this issue by submitting a bug report at *
* crbug.com/tint with the source program that triggered the bug. *
********************************************************************