blob: dc4e4126e923e1fd97ce2bbc1e150d5ed8105a15 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 66
; 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 %x_GLF_color "x_GLF_color"
OpName %f_mf22_ "f_mf22_"
OpName %m "m"
OpName %main_1 "main_1"
OpName %param "param"
OpName %x_38_phi "x_38_phi"
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
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
%x_GLF_color = OpVariable %_ptr_Private_v4float Private %7
%v3float = OpTypeVector %float 3
%v2float = OpTypeVector %float 2
%mat2v2float = OpTypeMatrix %v2float 2
%_ptr_Function_mat2v2float = OpTypePointer Function %mat2v2float
%11 = OpTypeFunction %v3float %_ptr_Function_mat2v2float
%float_1 = OpConstant %float 1
%24 = OpConstantComposite %v3float %float_1 %float_1 %float_1
%float_0 = OpConstant %float 0
%26 = OpConstantComposite %v3float %float_0 %float_0 %float_0
%void = OpTypeVoid
%27 = OpTypeFunction %void
%32 = OpConstantNull %mat2v2float
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Private_float = OpTypePointer Private %float
%39 = OpConstantComposite %v2float %float_0 %float_0
%40 = OpConstantComposite %mat2v2float %39 %39
%bool = OpTypeBool
%45 = OpConstantComposite %v2float %float_1 %float_0
%46 = OpConstantComposite %v2float %float_0 %float_1
%47 = OpConstantComposite %mat2v2float %45 %46
%52 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%main_out = OpTypeStruct %v4float
%53 = OpTypeFunction %main_out %v4float
%f_mf22_ = OpFunction %v3float None %11
%m = OpFunctionParameter %_ptr_Function_mat2v2float
%18 = OpLabel
OpBranch %19
%19 = OpLabel
OpLoopMerge %20 %21 None
OpBranch %22
%22 = OpLabel
OpReturnValue %24
%21 = OpLabel
OpBranch %19
%20 = OpLabel
OpReturnValue %26
OpFunctionEnd
%main_1 = OpFunction %void None %27
%30 = OpLabel
%param = OpVariable %_ptr_Function_mat2v2float Function %32
%x_38_phi = OpVariable %_ptr_Function_mat2v2float Function %32
%37 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_0
%38 = OpLoad %float %37
OpStore %x_38_phi %40
%41 = OpFOrdGreaterThanEqual %bool %38 %float_0
OpSelectionMerge %43 None
OpBranchConditional %41 %44 %43
%44 = OpLabel
OpStore %x_38_phi %47
OpBranch %43
%43 = OpLabel
%48 = OpLoad %mat2v2float %x_38_phi
%49 = OpMatrixTimesMatrix %mat2v2float %48 %48
OpStore %param %49
%50 = OpFunctionCall %v3float %f_mf22_ %param
OpStore %x_GLF_color %52
OpReturn
OpFunctionEnd
%main_inner = OpFunction %main_out None %53
%gl_FragCoord_param = OpFunctionParameter %v4float
%57 = OpLabel
OpStore %gl_FragCoord %gl_FragCoord_param
%58 = OpFunctionCall %void %main_1
%59 = OpLoad %v4float %x_GLF_color
%60 = OpCompositeConstruct %main_out %59
OpReturnValue %60
OpFunctionEnd
%main = OpFunction %void None %27
%62 = OpLabel
%64 = OpLoad %v4float %gl_FragCoord_param_1
%63 = OpFunctionCall %main_out %main_inner %64
%65 = OpCompositeExtract %v4float %63 0
OpStore %x_GLF_color_1_1 %65
OpReturn
OpFunctionEnd