| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 46 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %main "main" %x_1_param_2 %x_1_param_1_1 %x_2_param_2 %x_2_param_1_1 |
| OpExecutionMode %main OriginUpperLeft |
| OpName %x_1_param_2 "x_1_param_2" |
| OpName %x_1_param_1_1 "x_1_param_1_1" |
| OpName %x_2_param_2 "x_2_param_2" |
| OpName %x_2_param_1_1 "x_2_param_1_1" |
| OpName %x_1 "x_1" |
| OpName %S "S" |
| OpMemberName %S 0 "field0" |
| OpMemberName %S 1 "field1" |
| OpName %x_2 "x_2" |
| OpName %main_1 "main_1" |
| OpName %main_inner "main_inner" |
| OpName %x_1_param "x_1_param" |
| OpName %x_1_param_1 "x_1_param_1" |
| OpName %x_2_param "x_2_param" |
| OpName %x_2_param_1 "x_2_param_1" |
| OpName %main "main" |
| OpDecorate %x_1_param_2 Location 1 |
| OpDecorate %x_1_param_2 Flat |
| OpDecorate %x_1_param_1_1 Location 2 |
| OpDecorate %x_1_param_1_1 Flat |
| OpDecorate %x_2_param_2 Location 5 |
| OpDecorate %x_2_param_2 Flat |
| OpDecorate %x_2_param_1_1 Location 6 |
| OpDecorate %x_2_param_1_1 Flat |
| OpDecorate %_arr_float_uint_2 ArrayStride 4 |
| OpMemberDecorate %S 0 Offset 0 |
| OpMemberDecorate %S 1 Offset 4 |
| %float = OpTypeFloat 32 |
| %_ptr_Input_float = OpTypePointer Input %float |
| %x_1_param_2 = OpVariable %_ptr_Input_float Input |
| %x_1_param_1_1 = OpVariable %_ptr_Input_float Input |
| %x_2_param_2 = OpVariable %_ptr_Input_float Input |
| %x_2_param_1_1 = OpVariable %_ptr_Input_float Input |
| %uint = OpTypeInt 32 0 |
| %uint_2 = OpConstant %uint 2 |
| %_arr_float_uint_2 = OpTypeArray %float %uint_2 |
| %_ptr_Private__arr_float_uint_2 = OpTypePointer Private %_arr_float_uint_2 |
| %12 = OpConstantNull %_arr_float_uint_2 |
| %x_1 = OpVariable %_ptr_Private__arr_float_uint_2 Private %12 |
| %S = OpTypeStruct %float %float |
| %_ptr_Private_S = OpTypePointer Private %S |
| %16 = OpConstantNull %S |
| %x_2 = OpVariable %_ptr_Private_S Private %16 |
| %void = OpTypeVoid |
| %17 = OpTypeFunction %void |
| %21 = OpTypeFunction %void %float %float %float %float |
| %int = OpTypeInt 32 1 |
| %int_0 = OpConstant %int 0 |
| %_ptr_Private_float = OpTypePointer Private %float |
| %int_1 = OpConstant %int 1 |
| %uint_0 = OpConstant %uint 0 |
| %uint_1 = OpConstant %uint 1 |
| %main_1 = OpFunction %void None %17 |
| %20 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %main_inner = OpFunction %void None %21 |
| %x_1_param = OpFunctionParameter %float |
| %x_1_param_1 = OpFunctionParameter %float |
| %x_2_param = OpFunctionParameter %float |
| %x_2_param_1 = OpFunctionParameter %float |
| %27 = OpLabel |
| %31 = OpAccessChain %_ptr_Private_float %x_1 %int_0 |
| OpStore %31 %x_1_param |
| %33 = OpAccessChain %_ptr_Private_float %x_1 %int_1 |
| OpStore %33 %x_1_param_1 |
| %35 = OpAccessChain %_ptr_Private_float %x_2 %uint_0 |
| OpStore %35 %x_2_param |
| %37 = OpAccessChain %_ptr_Private_float %x_2 %uint_1 |
| OpStore %37 %x_2_param_1 |
| %38 = OpFunctionCall %void %main_1 |
| OpReturn |
| OpFunctionEnd |
| %main = OpFunction %void None %17 |
| %40 = OpLabel |
| %42 = OpLoad %float %x_1_param_2 |
| %43 = OpLoad %float %x_1_param_1_1 |
| %44 = OpLoad %float %x_2_param_2 |
| %45 = OpLoad %float %x_2_param_1_1 |
| %41 = OpFunctionCall %void %main_inner %42 %43 %44 %45 |
| OpReturn |
| OpFunctionEnd |