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