| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 57 |
| ; Schema: 0 |
| OpCapability Shader |
| %27 = OpExtInstImport "GLSL.std.450" |
| 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 %x_7_block "x_7_block" |
| OpMemberName %x_7_block 0 "inner" |
| OpName %buf0 "buf0" |
| OpMemberName %buf0 0 "r" |
| OpName %x_7 "x_7" |
| OpName %x_GLF_color "x_GLF_color" |
| OpName %main_1 "main_1" |
| OpName %f "f" |
| OpName %v "v" |
| 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 %x_7_block Block |
| OpMemberDecorate %x_7_block 0 Offset 0 |
| OpMemberDecorate %buf0 0 Offset 0 |
| OpDecorate %x_7 NonWritable |
| OpDecorate %x_7 DescriptorSet 0 |
| OpDecorate %x_7 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 |
| %buf0 = OpTypeStruct %v4float |
| %x_7_block = OpTypeStruct %buf0 |
| %_ptr_Uniform_x_7_block = OpTypePointer Uniform %x_7_block |
| %x_7 = OpVariable %_ptr_Uniform_x_7_block Uniform |
| %_ptr_Private_v4float = OpTypePointer Private %v4float |
| %x_GLF_color = OpVariable %_ptr_Private_v4float Private %5 |
| %void = OpTypeVoid |
| %12 = OpTypeFunction %void |
| %_ptr_Function_float = OpTypePointer Function %float |
| %18 = OpConstantNull %float |
| %_ptr_Function_v4float = OpTypePointer Function %v4float |
| %float_1 = OpConstant %float 1 |
| %uint = OpTypeInt 32 0 |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_Uniform_v4float = OpTypePointer Uniform %v4float |
| %float_0_100000001 = OpConstant %float 0.100000001 |
| %bool = OpTypeBool |
| %45 = OpConstantComposite %v4float %float_1 %18 %18 %float_1 |
| %main_out = OpTypeStruct %v4float |
| %46 = OpTypeFunction %main_out |
| %main_1 = OpFunction %void None %12 |
| %15 = OpLabel |
| %f = OpVariable %_ptr_Function_float Function %18 |
| %v = OpVariable %_ptr_Function_v4float Function %5 |
| OpStore %f %float_1 |
| %22 = OpLoad %float %f |
| %23 = OpLoad %float %f |
| %24 = OpLoad %float %f |
| %25 = OpLoad %float %f |
| %26 = OpExtInst %float %27 Sin %22 |
| %28 = OpExtInst %float %27 Cos %23 |
| %29 = OpExtInst %float %27 Exp2 %24 |
| %30 = OpExtInst %float %27 Log %25 |
| %31 = OpCompositeConstruct %v4float %26 %28 %29 %30 |
| OpStore %v %31 |
| %32 = OpLoad %v4float %v |
| %36 = OpAccessChain %_ptr_Uniform_v4float %x_7 %uint_0 %uint_0 |
| %37 = OpLoad %v4float %36 |
| %38 = OpExtInst %float %27 Distance %32 %37 |
| %40 = OpFOrdLessThan %bool %38 %float_0_100000001 |
| OpSelectionMerge %42 None |
| OpBranchConditional %40 %43 %44 |
| %43 = OpLabel |
| OpStore %x_GLF_color %45 |
| OpBranch %42 |
| %44 = OpLabel |
| OpStore %x_GLF_color %5 |
| OpBranch %42 |
| %42 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %main_inner = OpFunction %main_out None %46 |
| %49 = OpLabel |
| %50 = OpFunctionCall %void %main_1 |
| %51 = OpLoad %v4float %x_GLF_color |
| %52 = OpCompositeConstruct %main_out %51 |
| OpReturnValue %52 |
| OpFunctionEnd |
| %main = OpFunction %void None %12 |
| %54 = OpLabel |
| %55 = OpFunctionCall %main_out %main_inner |
| %56 = OpCompositeExtract %v4float %55 0 |
| OpStore %x_GLF_color_1_1 %56 |
| OpReturn |
| OpFunctionEnd |