blob: 835b59596a4945656ba919583716848687afa134 [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 %nan "nan"
OpName %undefined "undefined"
OpName %buf1 "buf1"
OpMemberName %buf1 0 "_GLF_uniform_int_values"
OpName %_ ""
OpName %buf0 "buf0"
OpMemberName %buf0 0 "_GLF_uniform_float_values"
OpName %__0 ""
OpName %_GLF_color "_GLF_color"
OpDecorate %_arr_int_uint_10 ArrayStride 16
OpMemberDecorate %buf1 0 Offset 0
OpDecorate %buf1 Block
OpDecorate %_ DescriptorSet 0
OpDecorate %_ Binding 1
OpDecorate %_arr_float_uint_1 ArrayStride 16
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %buf0 Block
OpDecorate %__0 DescriptorSet 0
OpDecorate %__0 Binding 0
OpDecorate %_GLF_color Location 0
%void = OpTypeVoid
%13 = OpTypeFunction %void
%float = OpTypeFloat 32
%_ptr_Function_float = OpTypePointer Function %float
%int = OpTypeInt 32 1
%int_n1 = OpConstant %int -1
%v4float = OpTypeVector %float 4
%_ptr_Function_v4float = OpTypePointer Function %v4float
%uint = OpTypeInt 32 0
%uint_10 = OpConstant %uint 10
%_arr_int_uint_10 = OpTypeArray %int %uint_10
%buf1 = OpTypeStruct %_arr_int_uint_10
%_ptr_Uniform_buf1 = OpTypePointer Uniform %buf1
%_ = OpVariable %_ptr_Uniform_buf1 Uniform
%int_0 = OpConstant %int 0
%_ptr_Uniform_int = OpTypePointer Uniform %int
%int_1 = OpConstant %int 1
%int_2 = OpConstant %int 2
%int_3 = OpConstant %int 3
%int_4 = OpConstant %int 4
%int_5 = OpConstant %int 5
%int_6 = OpConstant %int 6
%int_7 = OpConstant %int 7
%bool = OpTypeBool
%int_9 = OpConstant %int 9
%uint_0 = OpConstant %uint 0
%uint_1 = OpConstant %uint 1
%_arr_float_uint_1 = OpTypeArray %float %uint_1
%buf0 = OpTypeStruct %_arr_float_uint_1
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%__0 = OpVariable %_ptr_Uniform_buf0 Uniform
%_ptr_Uniform_float = OpTypePointer Uniform %float
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%int_8 = OpConstant %int 8
%main = OpFunction %void None %13
%40 = OpLabel
%nan = OpVariable %_ptr_Function_float Function
%undefined = OpVariable %_ptr_Function_v4float Function
%41 = OpBitcast %float %int_n1
OpStore %nan %41
%42 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%43 = OpLoad %int %42
%44 = OpConvertSToF %float %43
%45 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1
%46 = OpLoad %int %45
%47 = OpConvertSToF %float %46
%48 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2
%49 = OpLoad %int %48
%50 = OpConvertSToF %float %49
%51 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_3
%52 = OpLoad %int %51
%53 = OpConvertSToF %float %52
%54 = OpCompositeConstruct %v4float %44 %47 %50 %53
%55 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_4
%56 = OpLoad %int %55
%57 = OpConvertSToF %float %56
%58 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_5
%59 = OpLoad %int %58
%60 = OpConvertSToF %float %59
%61 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_6
%62 = OpLoad %int %61
%63 = OpConvertSToF %float %62
%64 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_7
%65 = OpLoad %int %64
%66 = OpConvertSToF %float %65
%67 = OpCompositeConstruct %v4float %57 %60 %63 %66
%68 = OpLoad %float %nan
%69 = OpCompositeConstruct %v4float %68 %68 %68 %68
%70 = OpExtInst %v4float %1 FMix %54 %67 %69
OpStore %undefined %70
%71 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%72 = OpLoad %int %71
%73 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_9
%74 = OpLoad %int %73
%75 = OpIEqual %bool %72 %74
%76 = OpLogicalNot %bool %75
OpSelectionMerge %77 None
OpBranchConditional %76 %78 %77
%78 = OpLabel
%79 = OpAccessChain %_ptr_Function_float %undefined %uint_0
%80 = OpLoad %float %79
%81 = OpAccessChain %_ptr_Uniform_float %__0 %int_0 %int_0
%82 = OpLoad %float %81
%83 = OpFOrdGreaterThan %bool %80 %82
OpBranch %77
%77 = OpLabel
%84 = OpPhi %bool %75 %40 %83 %78
OpSelectionMerge %85 None
OpBranchConditional %84 %86 %87
%86 = OpLabel
%88 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%89 = OpLoad %int %88
%90 = OpConvertSToF %float %89
%91 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_8
%92 = OpLoad %int %91
%93 = OpConvertSToF %float %92
%94 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_8
%95 = OpLoad %int %94
%96 = OpConvertSToF %float %95
%97 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%98 = OpLoad %int %97
%99 = OpConvertSToF %float %98
%100 = OpCompositeConstruct %v4float %90 %93 %96 %99
OpStore %_GLF_color %100
OpBranch %85
%87 = OpLabel
%101 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_8
%102 = OpLoad %int %101
%103 = OpConvertSToF %float %102
%104 = OpCompositeConstruct %v4float %103 %103 %103 %103
OpStore %_GLF_color %104
OpBranch %85
%85 = OpLabel
OpReturn
OpFunctionEnd