blob: 83e9bb9bdf761336b007442f215fb88eb0211bd0 [file] [log] [blame]
SKIP: FAILED
../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: buf0 = struct @align(4) {
three:i32 @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)
%x_GLF_color:ptr<private, vec4<f32>, read_write> = var
}
%main_1 = func():void {
$B2: {
%a:ptr<function, i32, read_write> = var
%i:ptr<function, i32, read_write> = var
store %a, 0i
store %i, 0i
loop [b: $B3, c: $B4] { # loop_1
$B3: { # body
%6:i32 = load %i
%7:ptr<uniform, i32, read> = access %x_7, 0u
%8:i32 = load %7
%9:i32 = add 7i, %8
%10:bool = lt %6, %9
if %10 [t: $B5, f: $B6] { # if_1
$B5: { # true
exit_if # if_1
}
$B6: { # false
exit_loop # loop_1
}
}
%11:i32 = load %i
%x_37:i32 = let %11
switch %x_37 [c: (7i 8i, $B7), c: (default, $B8)] { # switch_1
$B7: { # case
%13:i32 = load %a
%14:i32 = add %13, 1i
store %a, %14
exit_switch # switch_1
}
$B8: { # case
exit_switch # switch_1
}
}
continue # -> $B4
}
$B4: { # continuing
%15:i32 = load %i
%16:i32 = add %15, 1i
store %i, %16
next_iteration # -> $B3
}
}
%17:i32 = load %a
%18:bool = eq %17, 2i
if %18 [t: $B9, f: $B10] { # if_2
$B9: { # true
store %x_GLF_color, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f)
exit_if # if_2
}
$B10: { # false
store %x_GLF_color, vec4<f32>(0.0f)
exit_if # if_2
}
}
ret
}
}
%tint_symbol = @fragment func():main_out {
$B11: {
%20:void = call %main_1
%21:vec4<f32> = load %x_GLF_color
%22:main_out = construct %21
ret %22
}
}
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. *
********************************************************************