blob: 9df6dabdf068db8785bcbd350543b1b448a81a02 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 34
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %tint_symbol_1 %tint_symbol_2
OpExecutionMode %main OriginUpperLeft
OpExecutionMode %main DepthReplacing
OpName %outColor "outColor"
OpName %gl_FragDepth "gl_FragDepth"
OpName %tint_symbol_1 "tint_symbol_1"
OpName %tint_symbol_2 "tint_symbol_2"
OpName %main_1 "main_1"
OpName %main_out "main_out"
OpMemberName %main_out 0 "outColor_1"
OpMemberName %main_out 1 "gl_FragDepth_1"
OpName %tint_symbol_3 "tint_symbol_3"
OpName %tint_symbol "tint_symbol"
OpName %main "main"
OpDecorate %tint_symbol_1 Location 0
OpDecorate %tint_symbol_2 BuiltIn FragDepth
OpMemberDecorate %main_out 0 Offset 0
OpMemberDecorate %main_out 1 Offset 16
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Private_v4float = OpTypePointer Private %v4float
%5 = OpConstantNull %v4float
%outColor = OpVariable %_ptr_Private_v4float Private %5
%_ptr_Private_float = OpTypePointer Private %float
%8 = OpConstantNull %float
%gl_FragDepth = OpVariable %_ptr_Private_float Private %8
%_ptr_Output_v4float = OpTypePointer Output %v4float
%tint_symbol_1 = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Output_float = OpTypePointer Output %float
%tint_symbol_2 = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%13 = OpTypeFunction %void
%float_0 = OpConstant %float 0
%18 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
%float_0_699999988 = OpConstant %float 0.699999988
%main_out = OpTypeStruct %v4float %float
%20 = OpTypeFunction %void %main_out
%main_1 = OpFunction %void None %13
%16 = OpLabel
OpStore %outColor %18
OpStore %gl_FragDepth %float_0_699999988
OpReturn
OpFunctionEnd
%tint_symbol_3 = OpFunction %void None %20
%tint_symbol = OpFunctionParameter %main_out
%24 = OpLabel
%25 = OpCompositeExtract %v4float %tint_symbol 0
OpStore %tint_symbol_1 %25
%26 = OpCompositeExtract %float %tint_symbol 1
OpStore %tint_symbol_2 %26
OpReturn
OpFunctionEnd
%main = OpFunction %void None %13
%28 = OpLabel
%29 = OpFunctionCall %void %main_1
%31 = OpLoad %v4float %outColor
%32 = OpLoad %float %gl_FragDepth
%33 = OpCompositeConstruct %main_out %31 %32
%30 = OpFunctionCall %void %tint_symbol_3 %33
OpReturn
OpFunctionEnd