blob: 2d24385129707236b638b6afa4a9736a0fdc33cb [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_GLF_color:ptr<private, vec4<f32>, read_write> = var
%x_6:ptr<uniform, buf0, read> = var @binding_point(0, 0)
}
%main_1 = func():void {
$B2: {
%i:ptr<function, i32, read_write> = var
store %x_GLF_color, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f)
store %i, 0i
loop [b: $B3, c: $B4] { # loop_1
$B3: { # body
%5:i32 = load %i
%6:bool = lt %5, 10i
if %6 [t: $B5, f: $B6] { # if_1
$B5: { # true
exit_if # if_1
}
$B6: { # false
exit_loop # loop_1
}
}
store %x_GLF_color, vec4<f32>(1.0f)
%7:ptr<uniform, vec2<f32>, read> = access %x_6, 0u
%8:f32 = load_vector_element %7, 1u
%9:bool = gt 1.0f, %8
if %9 [t: $B7] { # if_2
$B7: { # true
store %x_GLF_color, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f)
if true [t: $B8] { # if_3
$B8: { # true
ret
}
}
exit_if # if_2
}
}
continue # -> $B4
}
$B4: { # continuing
%10:i32 = load %i
%11:i32 = add %10, 1i
store %i, %11
next_iteration # -> $B3
}
}
ret
}
}
%tint_symbol = @fragment func():main_out {
$B9: {
%13:void = call %main_1
%14:vec4<f32> = load %x_GLF_color
%15:main_out = construct %14
ret %15
}
}
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. *
********************************************************************