blob: 296caae5234f94b5f9fe729dc56f90b5023a538f [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 %a "a"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "_GLF_uniform_float_values"
OpName %_ ""
OpName %_GLF_color "_GLF_color"
OpDecorate %_arr_float_uint_4 ArrayStride 16
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %buf0 Block
OpDecorate %_ DescriptorSet 0
OpDecorate %_ Binding 0
OpDecorate %_GLF_color Location 0
%void = OpTypeVoid
%9 = OpTypeFunction %void
%float = OpTypeFloat 32
%_ptr_Function_float = OpTypePointer Function %float
%uint = OpTypeInt 32 0
%uint_4 = OpConstant %uint 4
%_arr_float_uint_4 = OpTypeArray %float %uint_4
%buf0 = OpTypeStruct %_arr_float_uint_4
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%_ = OpVariable %_ptr_Uniform_buf0 Uniform
%int = OpTypeInt 32 1
%int_0 = OpConstant %int 0
%int_1 = OpConstant %int 1
%_ptr_Uniform_float = OpTypePointer Uniform %float
%int_3 = OpConstant %int 3
%bool = OpTypeBool
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%uint_0 = OpConstant %uint 0
%_ptr_Output_float = OpTypePointer Output %float
%int_2 = OpConstant %int 2
%float_0 = OpConstant %float 0
%float_1 = OpConstant %float 1
%main = OpFunction %void None %9
%28 = OpLabel
%a = OpVariable %_ptr_Function_float Function
%29 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_1
%30 = OpLoad %float %29
OpStore %a %30
%31 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_3
%32 = OpLoad %float %31
%33 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_0
%34 = OpLoad %float %33
%35 = OpFOrdGreaterThan %bool %32 %34
OpSelectionMerge %36 None
OpBranchConditional %35 %37 %36
%37 = OpLabel
%38 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_0
%39 = OpLoad %float %38
%40 = OpLoad %float %a
%41 = OpFAdd %float %40 %39
OpStore %a %41
%42 = OpLoad %float %a
%43 = OpCompositeConstruct %v4float %42 %42 %42 %42
OpStore %_GLF_color %43
%44 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_3
%45 = OpLoad %float %44
%46 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_1
%47 = OpLoad %float %46
%48 = OpFOrdGreaterThan %bool %45 %47
OpSelectionMerge %49 None
OpBranchConditional %48 %50 %49
%50 = OpLabel
%51 = OpAccessChain %_ptr_Output_float %_GLF_color %uint_0
%52 = OpLoad %float %51
%53 = OpLoad %float %a
%54 = OpFAdd %float %53 %52
OpStore %a %54
%55 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_2
%56 = OpLoad %float %55
%57 = OpCompositeConstruct %v4float %56 %56 %56 %56
OpStore %_GLF_color %57
OpBranch %49
%49 = OpLabel
OpBranch %36
%36 = OpLabel
%58 = OpLoad %float %a
%59 = OpCompositeConstruct %v4float %58 %float_0 %float_0 %float_1
OpStore %_GLF_color %59
OpReturn
OpFunctionEnd