blob: 2d93057dee5172bdd04115d84394691343c08fcd [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" %color_out_1_1 %gl_FragDepth_1_1
OpExecutionMode %main OriginUpperLeft
OpExecutionMode %main DepthReplacing
OpName %color_out_1_1 "color_out_1_1"
OpName %gl_FragDepth_1_1 "gl_FragDepth_1_1"
OpName %color_out "color_out"
OpName %gl_FragDepth "gl_FragDepth"
OpName %main_1 "main_1"
OpName %main_out "main_out"
OpMemberName %main_out 0 "color_out_1"
OpMemberName %main_out 1 "gl_FragDepth_1"
OpName %main_inner "main_inner"
OpName %main "main"
OpDecorate %color_out_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
%color_out_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
%color_out = 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_1 = OpConstant %float 1
%float_0 = OpConstant %float 0
%19 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%float_0_400000006 = OpConstant %float 0.400000006
%main_out = OpTypeStruct %v4float %float
%21 = OpTypeFunction %main_out
%main_1 = OpFunction %void None %13
%16 = OpLabel
OpStore %color_out %19
OpStore %gl_FragDepth %float_0_400000006
OpReturn
OpFunctionEnd
%main_inner = OpFunction %main_out None %21
%24 = OpLabel
%25 = OpFunctionCall %void %main_1
%26 = OpLoad %v4float %color_out
%27 = OpLoad %float %gl_FragDepth
%28 = OpCompositeConstruct %main_out %26 %27
OpReturnValue %28
OpFunctionEnd
%main = OpFunction %void None %13
%30 = OpLabel
%31 = OpFunctionCall %main_out %main_inner
%32 = OpCompositeExtract %v4float %31 0
OpStore %color_out_1_1 %32
%33 = OpCompositeExtract %float %31 1
OpStore %gl_FragDepth_1_1 %33
OpReturn
OpFunctionEnd