| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 84 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %main "main" %tint_symbol_1 |
| OpExecutionMode %main OriginUpperLeft |
| OpName %buf0 "buf0" |
| OpMemberName %buf0 0 "x_GLF_uniform_int_values" |
| OpName %x_6 "x_6" |
| OpName %buf1 "buf1" |
| OpMemberName %buf1 0 "x_GLF_uniform_float_values" |
| OpName %x_8 "x_8" |
| OpName %x_GLF_color "x_GLF_color" |
| OpName %tint_symbol_1 "tint_symbol_1" |
| OpName %main_1 "main_1" |
| OpName %data "data" |
| OpName %a "a" |
| OpName %main_out "main_out" |
| OpMemberName %main_out 0 "x_GLF_color_1" |
| OpName %tint_symbol_2 "tint_symbol_2" |
| OpName %tint_symbol "tint_symbol" |
| OpName %main "main" |
| OpDecorate %buf0 Block |
| OpMemberDecorate %buf0 0 Offset 0 |
| OpDecorate %_arr_int_uint_2 ArrayStride 16 |
| OpDecorate %x_6 NonWritable |
| OpDecorate %x_6 DescriptorSet 0 |
| OpDecorate %x_6 Binding 0 |
| OpDecorate %buf1 Block |
| OpMemberDecorate %buf1 0 Offset 0 |
| OpDecorate %_arr_float_uint_2 ArrayStride 16 |
| OpDecorate %x_8 NonWritable |
| OpDecorate %x_8 DescriptorSet 0 |
| OpDecorate %x_8 Binding 1 |
| OpDecorate %tint_symbol_1 Location 0 |
| OpDecorate %_arr_float_uint_2_0 ArrayStride 4 |
| OpMemberDecorate %main_out 0 Offset 0 |
| %int = OpTypeInt 32 1 |
| %uint = OpTypeInt 32 0 |
| %uint_2 = OpConstant %uint 2 |
| %_arr_int_uint_2 = OpTypeArray %int %uint_2 |
| %buf0 = OpTypeStruct %_arr_int_uint_2 |
| %_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0 |
| %x_6 = OpVariable %_ptr_Uniform_buf0 Uniform |
| %float = OpTypeFloat 32 |
| %_arr_float_uint_2 = OpTypeArray %float %uint_2 |
| %buf1 = OpTypeStruct %_arr_float_uint_2 |
| %_ptr_Uniform_buf1 = OpTypePointer Uniform %buf1 |
| %x_8 = OpVariable %_ptr_Uniform_buf1 Uniform |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Private_v4float = OpTypePointer Private %v4float |
| %16 = OpConstantNull %v4float |
| %x_GLF_color = OpVariable %_ptr_Private_v4float Private %16 |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %tint_symbol_1 = OpVariable %_ptr_Output_v4float Output %16 |
| %void = OpTypeVoid |
| %19 = OpTypeFunction %void |
| %_arr_float_uint_2_0 = OpTypeArray %float %uint_2 |
| %_ptr_Function__arr_float_uint_2_0 = OpTypePointer Function %_arr_float_uint_2_0 |
| %26 = OpConstantNull %_arr_float_uint_2_0 |
| %_ptr_Function_float = OpTypePointer Function %float |
| %29 = OpConstantNull %float |
| %uint_0 = OpConstant %uint 0 |
| %int_0 = OpConstant %int 0 |
| %_ptr_Uniform_int = OpTypePointer Uniform %int |
| %_ptr_Uniform_float = OpTypePointer Uniform %float |
| %int_1 = OpConstant %int 1 |
| %int_2 = OpConstant %int 2 |
| %bool = OpTypeBool |
| %main_out = OpTypeStruct %v4float |
| %72 = OpTypeFunction %void %main_out |
| %main_1 = OpFunction %void None %19 |
| %22 = OpLabel |
| %data = OpVariable %_ptr_Function__arr_float_uint_2_0 Function %26 |
| %a = OpVariable %_ptr_Function_float Function %29 |
| %33 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_0 |
| %34 = OpLoad %int %33 |
| %36 = OpAccessChain %_ptr_Uniform_float %x_8 %uint_0 %int_0 |
| %37 = OpLoad %float %36 |
| %38 = OpAccessChain %_ptr_Function_float %data %34 |
| OpStore %38 %37 |
| %40 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_1 |
| %41 = OpLoad %int %40 |
| %42 = OpAccessChain %_ptr_Uniform_float %x_8 %uint_0 %int_1 |
| %43 = OpLoad %float %42 |
| %44 = OpAccessChain %_ptr_Function_float %data %41 |
| OpStore %44 %43 |
| %45 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_1 |
| %46 = OpLoad %int %45 |
| %48 = OpBitwiseAnd %int %46 %int_2 |
| %49 = OpBitwiseXor %int %int_1 %48 |
| %50 = OpAccessChain %_ptr_Function_float %data %49 |
| %51 = OpLoad %float %50 |
| OpStore %a %51 |
| %52 = OpLoad %float %a |
| %53 = OpAccessChain %_ptr_Uniform_float %x_8 %uint_0 %int_1 |
| %54 = OpLoad %float %53 |
| %55 = OpFOrdEqual %bool %52 %54 |
| OpSelectionMerge %57 None |
| OpBranchConditional %55 %58 %59 |
| %58 = OpLabel |
| %60 = OpAccessChain %_ptr_Uniform_float %x_8 %uint_0 %int_1 |
| %61 = OpLoad %float %60 |
| %62 = OpAccessChain %_ptr_Uniform_float %x_8 %uint_0 %int_0 |
| %63 = OpLoad %float %62 |
| %64 = OpAccessChain %_ptr_Uniform_float %x_8 %uint_0 %int_0 |
| %65 = OpLoad %float %64 |
| %66 = OpAccessChain %_ptr_Uniform_float %x_8 %uint_0 %int_1 |
| %67 = OpLoad %float %66 |
| %68 = OpCompositeConstruct %v4float %61 %63 %65 %67 |
| OpStore %x_GLF_color %68 |
| OpBranch %57 |
| %59 = OpLabel |
| %69 = OpAccessChain %_ptr_Uniform_float %x_8 %uint_0 %int_0 |
| %70 = OpLoad %float %69 |
| %71 = OpCompositeConstruct %v4float %70 %70 %70 %70 |
| OpStore %x_GLF_color %71 |
| OpBranch %57 |
| %57 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %tint_symbol_2 = OpFunction %void None %72 |
| %tint_symbol = OpFunctionParameter %main_out |
| %76 = OpLabel |
| %77 = OpCompositeExtract %v4float %tint_symbol 0 |
| OpStore %tint_symbol_1 %77 |
| OpReturn |
| OpFunctionEnd |
| %main = OpFunction %void None %19 |
| %79 = OpLabel |
| %80 = OpFunctionCall %void %main_1 |
| %82 = OpLoad %v4float %x_GLF_color |
| %83 = OpCompositeConstruct %main_out %82 |
| %81 = OpFunctionCall %void %tint_symbol_2 %83 |
| OpReturn |
| OpFunctionEnd |