blob: 4446eea3e499971b8adeffbbefedfc5acaa43e0a [file] [log] [blame]
SKIP: FAILED
../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: buf0 = struct @align(8) {
twoandthree:vec2<f32> @offset(0)
}
main_out = struct @align(16) {
x_GLF_color_1:vec4<f32> @offset(0), @location(0)
}
$B1: { # root
%x_6: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, vec2<f32>, read_write> = var
%b:ptr<function, vec2<f32>, read_write> = var
%x_46:ptr<function, bool, read_write> = var
%x_47:ptr<function, bool, read_write> = var
%8:ptr<uniform, vec2<f32>, read> = access %x_6, 0u
%9:vec2<f32> = load %8
store %a, %9
%10:f32 = load_vector_element %a, 0u
%11:f32 = let %10
%12:vec2<f32> = load %a
%13:vec2<f32> = clamp %12, vec2<f32>(1.0f), vec2<f32>(1.0f)
%14:f32 = access %13, 1u
%15:vec2<f32> = construct %11, %14
store %b, %15
%16:f32 = load_vector_element %b, 0u
%17:bool = eq %16, 2.0f
%x_41:bool = let %17
store %x_47, %x_41
if %x_41 [t: $B3] { # if_1
$B3: { # true
%19:f32 = load_vector_element %b, 1u
%20:bool = eq %19, 1.0f
store %x_46, %20
%21:bool = load %x_46
store %x_47, %21
exit_if # if_1
}
}
%22:bool = load %x_47
if %22 [t: $B4, f: $B5] { # if_2
$B4: { # true
store %x_GLF_color, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f)
exit_if # if_2
}
$B5: { # false
store %x_GLF_color, vec4<f32>(0.0f)
exit_if # if_2
}
}
ret
}
}
%tint_symbol = @fragment func():main_out {
$B6: {
%24:void = call %main_1
%25:vec4<f32> = load %x_GLF_color
%26:main_out = construct %25
ret %26
}
}
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. *
********************************************************************