blob: 23be3728ac822c442f7fe24e1af0fba7339ffe49 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 79
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %gl_FragCoord_param_1 %x_GLF_color_1_1
OpExecutionMode %main OriginUpperLeft
OpName %gl_FragCoord_param_1 "gl_FragCoord_param_1"
OpName %x_GLF_color_1_1 "x_GLF_color_1_1"
OpName %gl_FragCoord "gl_FragCoord"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "x_GLF_uniform_float_values"
OpName %x_6 "x_6"
OpName %x_GLF_color "x_GLF_color"
OpName %main_1 "main_1"
OpName %main_out "main_out"
OpMemberName %main_out 0 "x_GLF_color_1"
OpName %main_inner "main_inner"
OpName %gl_FragCoord_param "gl_FragCoord_param"
OpName %main "main"
OpDecorate %gl_FragCoord_param_1 BuiltIn FragCoord
OpDecorate %x_GLF_color_1_1 Location 0
OpDecorate %buf0 Block
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %_arr_float_uint_5 ArrayStride 16
OpDecorate %x_6 NonWritable
OpDecorate %x_6 DescriptorSet 0
OpDecorate %x_6 Binding 0
OpMemberDecorate %main_out 0 Offset 0
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Input_v4float = OpTypePointer Input %v4float
%gl_FragCoord_param_1 = OpVariable %_ptr_Input_v4float Input
%_ptr_Output_v4float = OpTypePointer Output %v4float
%7 = OpConstantNull %v4float
%x_GLF_color_1_1 = OpVariable %_ptr_Output_v4float Output %7
%_ptr_Private_v4float = OpTypePointer Private %v4float
%gl_FragCoord = OpVariable %_ptr_Private_v4float Private %7
%uint = OpTypeInt 32 0
%uint_5 = OpConstant %uint 5
%_arr_float_uint_5 = OpTypeArray %float %uint_5
%buf0 = OpTypeStruct %_arr_float_uint_5
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%x_6 = OpVariable %_ptr_Uniform_buf0 Uniform
%x_GLF_color = OpVariable %_ptr_Private_v4float Private %7
%void = OpTypeVoid
%17 = OpTypeFunction %void
%uint_0 = OpConstant %uint 0
%_ptr_Private_float = OpTypePointer Private %float
%int = OpTypeInt 32 1
%int_0 = OpConstant %int 0
%_ptr_Uniform_float = OpTypePointer Uniform %float
%bool = OpTypeBool
%int_2 = OpConstant %int 2
%uint_1 = OpConstant %uint 1
%int_4 = OpConstant %int 4
%int_3 = OpConstant %int 3
%int_1 = OpConstant %int 1
%float_10 = OpConstant %float 10
%mat4v4float = OpTypeMatrix %v4float 4
%float_0 = OpConstant %float 0
%main_out = OpTypeStruct %v4float
%66 = OpTypeFunction %main_out %v4float
%main_1 = OpFunction %void None %17
%20 = OpLabel
%23 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_0
%24 = OpLoad %float %23
%28 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %int_0
%29 = OpLoad %float %28
%30 = OpFOrdGreaterThan %bool %24 %29
OpSelectionMerge %32 None
OpBranchConditional %30 %33 %32
%33 = OpLabel
%35 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %int_2
%36 = OpLoad %float %35
%37 = OpCompositeConstruct %v4float %36 %36 %36 %36
OpStore %x_GLF_color %37
%39 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%40 = OpLoad %float %39
%41 = OpFOrdGreaterThan %bool %40 %29
OpSelectionMerge %42 None
OpBranchConditional %41 %43 %42
%43 = OpLabel
%45 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %int_4
%46 = OpLoad %float %45
%47 = OpCompositeConstruct %v4float %46 %46 %46 %46
OpStore %x_GLF_color %47
OpBranch %42
%42 = OpLabel
%49 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %int_3
%50 = OpLoad %float %49
%51 = OpCompositeConstruct %v4float %50 %50 %50 %50
OpStore %x_GLF_color %51
OpBranch %32
%32 = OpLabel
%53 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %int_1
%54 = OpLoad %float %53
%56 = OpCompositeConstruct %v4float %29 %54 %54 %float_10
OpStore %x_GLF_color %56
%57 = OpLoad %v4float %x_GLF_color
%60 = OpCompositeConstruct %v4float %29 %float_0 %float_0 %float_0
%61 = OpCompositeConstruct %v4float %float_0 %29 %float_0 %float_0
%62 = OpCompositeConstruct %v4float %float_0 %float_0 %29 %float_0
%63 = OpCompositeConstruct %v4float %float_0 %float_0 %float_0 %29
%64 = OpCompositeConstruct %mat4v4float %60 %61 %62 %63
%65 = OpMatrixTimesVector %v4float %64 %57
OpStore %x_GLF_color %65
OpReturn
OpFunctionEnd
%main_inner = OpFunction %main_out None %66
%gl_FragCoord_param = OpFunctionParameter %v4float
%70 = OpLabel
OpStore %gl_FragCoord %gl_FragCoord_param
%71 = OpFunctionCall %void %main_1
%72 = OpLoad %v4float %x_GLF_color
%73 = OpCompositeConstruct %main_out %72
OpReturnValue %73
OpFunctionEnd
%main = OpFunction %void None %17
%75 = OpLabel
%77 = OpLoad %v4float %gl_FragCoord_param_1
%76 = OpFunctionCall %main_out %main_inner %77
%78 = OpCompositeExtract %v4float %76 0
OpStore %x_GLF_color_1_1 %78
OpReturn
OpFunctionEnd