| SKIP: FAILED |
| |
| ../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: buf0 = struct @align(4) { |
| one: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 |
| } |
| |
| %func_i1_ = func(%x:ptr<function, i32, read_write>):i32 { |
| $B2: { |
| %5:ptr<uniform, i32, read> = access %x_7, 0u |
| %6:i32 = load %5 |
| %x_35:i32 = let %6 |
| %8:bool = eq %x_35, 1i |
| if %8 [t: $B3] { # if_1 |
| $B3: { # true |
| %9:i32 = load %x |
| %x_39:i32 = let %9 |
| ret %x_39 |
| } |
| } |
| %11:ptr<uniform, i32, read> = access %x_7, 0u |
| %12:i32 = load %11 |
| %x_41:i32 = let %12 |
| ret %x_41 |
| } |
| } |
| %main_1 = func():void { |
| $B4: { |
| %param:ptr<function, i32, read_write> = var |
| store %param, -1i |
| %16:i32 = call %func_i1_, %param |
| %x_28:i32 = let %16 |
| %18:bool = lte %x_28, 0i |
| if %18 [t: $B5, f: $B6] { # if_2 |
| $B5: { # true |
| store %x_GLF_color, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f) |
| exit_if # if_2 |
| } |
| $B6: { # false |
| store %x_GLF_color, vec4<f32>(0.0f) |
| exit_if # if_2 |
| } |
| } |
| ret |
| } |
| } |
| %tint_symbol = @fragment func():main_out { |
| $B7: { |
| %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. * |
| ******************************************************************** |