blob: bec01b25e92e2c8851514c60bbb12b1f2af1e0d5 [file] [log] [blame]
SKIP: FAILED
../../src/tint/lang/msl/writer/printer/printer.cc:1257 internal compiler error: main_out = struct @align(16) {
color_1:vec4<f32> @offset(0), @location(0)
}
$B1: { # root
%color:ptr<private, vec4<f32>, read_write> = var
}
%drawShape_vf2_ = func(%pos:ptr<function, vec2<f32>, read_write>):vec3<f32> {
$B2: {
%c3:ptr<function, bool, read_write> = var
%x_35:ptr<function, bool, read_write> = var
%6:f32 = load_vector_element %pos, 1u
%7:bool = lt %6, 1.0f
%x_33:bool = let %7
store %c3, %x_33
store %x_35, %x_33
loop [b: $B3] { # loop_1
$B3: { # body
%9:bool = load %x_35
if %9 [t: $B4, f: $B5] { # if_1
$B4: { # true
exit_if # if_1
}
$B5: { # false
exit_loop # loop_1
}
}
ret vec3<f32>(1.0f)
}
}
ret vec3<f32>(1.0f)
}
}
%main_1 = func():void {
$B6: {
%param:ptr<function, vec2<f32>, read_write> = var
store %param, vec2<f32>(1.0f)
%12:vec3<f32> = call %drawShape_vf2_, %param
%x_29:vec3<f32> = let %12
store %color, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f)
ret
}
}
%tint_symbol = @fragment func():main_out {
$B7: {
%15:void = call %main_1
%16:vec4<f32> = load %color
%17:main_out = construct %16
ret %17
}
}
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. *
********************************************************************