| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 85 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %main "main" %x_GLF_color_1_1 |
| OpExecutionMode %main OriginUpperLeft |
| OpName %x_GLF_color_1_1 "x_GLF_color_1_1" |
| OpName %buf1 "buf1" |
| OpMemberName %buf1 0 "x_GLF_uniform_uint_values" |
| OpName %x_6 "x_6" |
| OpName %buf2 "buf2" |
| OpMemberName %buf2 0 "x_GLF_uniform_float_values" |
| OpName %x_8 "x_8" |
| OpName %x_GLF_color "x_GLF_color" |
| OpName %buf0 "buf0" |
| OpMemberName %buf0 0 "x_GLF_uniform_int_values" |
| OpName %x_12 "x_12" |
| OpName %main_1 "main_1" |
| OpName %a "a" |
| OpName %b "b" |
| OpName %c "c" |
| OpName %main_out "main_out" |
| OpMemberName %main_out 0 "x_GLF_color_1" |
| OpName %main_inner "main_inner" |
| OpName %main "main" |
| OpDecorate %x_GLF_color_1_1 Location 0 |
| OpDecorate %buf1 Block |
| OpMemberDecorate %buf1 0 Offset 0 |
| OpDecorate %_arr_uint_uint_2 ArrayStride 16 |
| OpDecorate %x_6 NonWritable |
| OpDecorate %x_6 DescriptorSet 0 |
| OpDecorate %x_6 Binding 1 |
| OpDecorate %buf2 Block |
| OpMemberDecorate %buf2 0 Offset 0 |
| OpDecorate %_arr_float_uint_1 ArrayStride 16 |
| OpDecorate %x_8 NonWritable |
| OpDecorate %x_8 DescriptorSet 0 |
| OpDecorate %x_8 Binding 2 |
| OpDecorate %buf0 Block |
| OpMemberDecorate %buf0 0 Offset 0 |
| OpDecorate %_arr_int_uint_2 ArrayStride 16 |
| OpDecorate %x_12 NonWritable |
| OpDecorate %x_12 DescriptorSet 0 |
| OpDecorate %x_12 Binding 0 |
| OpMemberDecorate %main_out 0 Offset 0 |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %5 = OpConstantNull %v4float |
| %x_GLF_color_1_1 = OpVariable %_ptr_Output_v4float Output %5 |
| %uint = OpTypeInt 32 0 |
| %uint_2 = OpConstant %uint 2 |
| %_arr_uint_uint_2 = OpTypeArray %uint %uint_2 |
| %buf1 = OpTypeStruct %_arr_uint_uint_2 |
| %_ptr_Uniform_buf1 = OpTypePointer Uniform %buf1 |
| %x_6 = OpVariable %_ptr_Uniform_buf1 Uniform |
| %uint_1 = OpConstant %uint 1 |
| %_arr_float_uint_1 = OpTypeArray %float %uint_1 |
| %buf2 = OpTypeStruct %_arr_float_uint_1 |
| %_ptr_Uniform_buf2 = OpTypePointer Uniform %buf2 |
| %x_8 = OpVariable %_ptr_Uniform_buf2 Uniform |
| %_ptr_Private_v4float = OpTypePointer Private %v4float |
| %x_GLF_color = OpVariable %_ptr_Private_v4float Private %5 |
| %int = OpTypeInt 32 1 |
| %_arr_int_uint_2 = OpTypeArray %int %uint_2 |
| %buf0 = OpTypeStruct %_arr_int_uint_2 |
| %_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0 |
| %x_12 = OpVariable %_ptr_Uniform_buf0 Uniform |
| %void = OpTypeVoid |
| %24 = OpTypeFunction %void |
| %_ptr_Function_uint = OpTypePointer Function %uint |
| %30 = OpConstantNull %uint |
| %_ptr_Function_float = OpTypePointer Function %float |
| %33 = OpConstantNull %float |
| %uint_0 = OpConstant %uint 0 |
| %int_0 = OpConstant %int 0 |
| %_ptr_Uniform_uint = OpTypePointer Uniform %uint |
| %_ptr_Uniform_float = OpTypePointer Uniform %float |
| %bool = OpTypeBool |
| %_ptr_Uniform_int = OpTypePointer Uniform %int |
| %int_1 = OpConstant %int 1 |
| %main_out = OpTypeStruct %v4float |
| %74 = OpTypeFunction %main_out |
| %main_1 = OpFunction %void None %24 |
| %27 = OpLabel |
| %a = OpVariable %_ptr_Function_uint Function %30 |
| %b = OpVariable %_ptr_Function_float Function %33 |
| %c = OpVariable %_ptr_Function_uint Function %30 |
| %38 = OpAccessChain %_ptr_Uniform_uint %x_6 %uint_0 %int_0 |
| %39 = OpLoad %uint %38 |
| %41 = OpAccessChain %_ptr_Uniform_float %x_8 %uint_0 %int_0 |
| %42 = OpLoad %float %41 |
| %43 = OpConvertFToU %uint %42 |
| %44 = OpShiftRightLogical %uint %39 %43 |
| OpStore %a %44 |
| %45 = OpLoad %uint %a |
| %46 = OpBitcast %float %45 |
| OpStore %b %46 |
| %47 = OpLoad %float %b |
| %48 = OpBitcast %uint %47 |
| OpStore %c %48 |
| %49 = OpLoad %uint %c |
| %50 = OpAccessChain %_ptr_Uniform_uint %x_6 %uint_0 %int_0 |
| %51 = OpLoad %uint %50 |
| %52 = OpIEqual %bool %49 %51 |
| OpSelectionMerge %54 None |
| OpBranchConditional %52 %55 %56 |
| %55 = OpLabel |
| %58 = OpAccessChain %_ptr_Uniform_int %x_12 %uint_0 %int_0 |
| %59 = OpLoad %int %58 |
| %61 = OpAccessChain %_ptr_Uniform_int %x_12 %uint_0 %int_1 |
| %62 = OpLoad %int %61 |
| %63 = OpAccessChain %_ptr_Uniform_int %x_12 %uint_0 %int_1 |
| %64 = OpLoad %int %63 |
| %65 = OpAccessChain %_ptr_Uniform_int %x_12 %uint_0 %int_0 |
| %66 = OpLoad %int %65 |
| %67 = OpConvertSToF %float %59 |
| %68 = OpConvertSToF %float %62 |
| %69 = OpConvertSToF %float %64 |
| %70 = OpConvertSToF %float %66 |
| %71 = OpCompositeConstruct %v4float %67 %68 %69 %70 |
| OpStore %x_GLF_color %71 |
| OpBranch %54 |
| %56 = OpLabel |
| %72 = OpLoad %float %b |
| %73 = OpCompositeConstruct %v4float %72 %72 %72 %72 |
| OpStore %x_GLF_color %73 |
| OpBranch %54 |
| %54 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %main_inner = OpFunction %main_out None %74 |
| %77 = OpLabel |
| %78 = OpFunctionCall %void %main_1 |
| %79 = OpLoad %v4float %x_GLF_color |
| %80 = OpCompositeConstruct %main_out %79 |
| OpReturnValue %80 |
| OpFunctionEnd |
| %main = OpFunction %void None %24 |
| %82 = OpLabel |
| %83 = OpFunctionCall %main_out %main_inner |
| %84 = OpCompositeExtract %v4float %83 0 |
| OpStore %x_GLF_color_1_1 %84 |
| OpReturn |
| OpFunctionEnd |