blob: a72f1be6900881e6ee965a5fc1e6639e0503ed89 [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
%x_7:i32 = let %5
%7:bool = lt %x_7, 10i
if %7 [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)
%8:ptr<uniform, vec2<f32>, read> = access %x_6, 0u
%9:f32 = load_vector_element %8, 1u
%x_39:f32 = let %9
%11:bool = gt 1.0f, %x_39
if %11 [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
%12:i32 = load %i
%x_8:i32 = let %12
%14:i32 = add %x_8, 1i
store %i, %14
next_iteration # -> $B3
}
}
ret
}
}
%tint_symbol = @fragment func():main_out {
$B9: {
%16:void = call %main_1
%17:vec4<f32> = load %x_GLF_color
%18:main_out = construct %17
ret %18
}
}
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. *
********************************************************************