blob: 31236b3e24c8f6c788d14c9035ca1635af45d7b1 [file] [log] [blame]
SKIP: FAILED
../../src/tint/lang/msl/writer/printer/printer.cc:1257 internal compiler error: 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
}
%f_ = func():vec3<f32> {
$B2: {
%iteration:ptr<function, i32, read_write> = var
%k:ptr<function, i32, read_write> = var
store %iteration, 0i
store %k, 0i
loop [b: $B3, c: $B4] { # loop_1
$B3: { # body
%5:i32 = load %k
%6:bool = lt %5, 100i
if %6 [t: $B5, f: $B6] { # if_1
$B5: { # true
exit_if # if_1
}
$B6: { # false
exit_loop # loop_1
}
}
%7:i32 = load %iteration
%8:i32 = add %7, 1i
store %iteration, %8
continue # -> $B4
}
$B4: { # continuing
%9:i32 = load %k
%10:i32 = add %9, 1i
store %k, %10
next_iteration # -> $B3
}
}
%11:i32 = load %iteration
%12:bool = lt %11, 100i
if %12 [t: $B7, f: $B8] { # if_2
$B7: { # true
%13:i32 = load %iteration
%x_13:i32 = let %13
%15:i32 = load %iteration
%x_15:i32 = let %15
%17:i32 = sub %x_13, 1i
%18:f32 = convert %17
%19:f32 = let %18
%20:i32 = sub %x_15, 1i
%21:f32 = convert %20
%22:vec3<f32> = construct 1.0f, %19, %21
ret %22
}
$B8: { # false
loop [b: $B9] { # loop_2
$B9: { # body
loop [b: $B10] { # loop_3
$B10: { # body
ret vec3<f32>(1.0f, 0.0f, 0.0f)
}
}
unreachable
}
}
exit_if # if_2
}
}
unreachable
}
}
%main_1 = func():void {
$B11: {
%24:vec3<f32> = call %f_
%x_35:vec3<f32> = let %24
%26:f32 = access %x_35, 0u
%27:f32 = access %x_35, 1u
%28:f32 = access %x_35, 2u
%29:vec4<f32> = construct %26, %27, %28, 1.0f
store %x_GLF_color, %29
ret
}
}
%tint_symbol = @fragment func():main_out {
$B12: {
%31:void = call %main_1
%32:vec4<f32> = load %x_GLF_color
%33:main_out = construct %32
ret %33
}
}
invalid entry point IO struct uses
********************************************************************
* 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. *
********************************************************************