blob: 78defc841445c262144e989e38641274b849ad49 [file] [log] [blame]
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %_GLF_color
OpExecutionMode %main OriginUpperLeft
OpSource ESSL 310
OpName %main "main"
OpName %f "f"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "_GLF_uniform_int_values"
OpName %_ ""
OpName %buf1 "buf1"
OpMemberName %buf1 0 "_GLF_uniform_float_values"
OpName %__0 ""
OpName %_GLF_color "_GLF_color"
OpDecorate %_arr_int_uint_2 ArrayStride 16
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %buf0 Block
OpDecorate %_ DescriptorSet 0
OpDecorate %_ Binding 0
OpDecorate %_arr_float_uint_1 ArrayStride 16
OpMemberDecorate %buf1 0 Offset 0
OpDecorate %buf1 Block
OpDecorate %__0 DescriptorSet 0
OpDecorate %__0 Binding 1
OpDecorate %_GLF_color Location 0
%void = OpTypeVoid
%12 = OpTypeFunction %void
%float = OpTypeFloat 32
%_ptr_Function_float = OpTypePointer Function %float
%float_40_3300018 = OpConstant %float 40.3300018
%float_1 = OpConstant %float 1
%int = OpTypeInt 32 1
%int_98980 = OpConstant %int 98980
%bool = OpTypeBool
%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
%_ = OpVariable %_ptr_Uniform_buf0 Uniform
%int_0 = OpConstant %int 0
%_ptr_Uniform_int = OpTypePointer Uniform %int
%int_1 = OpConstant %int 1
%uint_1 = OpConstant %uint 1
%_arr_float_uint_1 = OpTypeArray %float %uint_1
%buf1 = OpTypeStruct %_arr_float_uint_1
%_ptr_Uniform_buf1 = OpTypePointer Uniform %buf1
%__0 = OpVariable %_ptr_Uniform_buf1 Uniform
%_ptr_Uniform_float = OpTypePointer Uniform %float
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%main = OpFunction %void None %12
%31 = OpLabel
%f = OpVariable %_ptr_Function_float Function
%32 = OpExtInst %float %1 Ldexp %float_1 %int_98980
%33 = OpExtInst %float %1 Pow %float_40_3300018 %32
OpStore %f %33
%34 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%35 = OpLoad %int %34
%36 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%37 = OpLoad %int %36
%38 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1
%39 = OpLoad %int %38
%40 = OpIAdd %int %37 %39
%41 = OpIEqual %bool %35 %40
%42 = OpLogicalNot %bool %41
OpSelectionMerge %43 None
OpBranchConditional %42 %44 %43
%44 = OpLabel
%45 = OpLoad %float %f
%46 = OpAccessChain %_ptr_Uniform_float %__0 %int_0 %int_0
%47 = OpLoad %float %46
%48 = OpFOrdGreaterThan %bool %45 %47
OpBranch %43
%43 = OpLabel
%49 = OpPhi %bool %41 %31 %48 %44
OpSelectionMerge %50 None
OpBranchConditional %49 %51 %52
%51 = OpLabel
%53 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%54 = OpLoad %int %53
%55 = OpConvertSToF %float %54
%56 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1
%57 = OpLoad %int %56
%58 = OpConvertSToF %float %57
%59 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1
%60 = OpLoad %int %59
%61 = OpConvertSToF %float %60
%62 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%63 = OpLoad %int %62
%64 = OpConvertSToF %float %63
%65 = OpCompositeConstruct %v4float %55 %58 %61 %64
OpStore %_GLF_color %65
OpBranch %50
%52 = OpLabel
%66 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1
%67 = OpLoad %int %66
%68 = OpConvertSToF %float %67
%69 = OpCompositeConstruct %v4float %68 %68 %68 %68
OpStore %_GLF_color %69
OpBranch %50
%50 = OpLabel
OpReturn
OpFunctionEnd