blob: ce10d20e23add66dd816743dfaac73b40559fd59 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 41
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %tint_symbol %tint_symbol_2 %tint_symbol_3
OpExecutionMode %main OriginUpperLeft
OpExecutionMode %main DepthReplacing
OpName %outColor "outColor"
OpName %gl_FragDepth "gl_FragDepth"
OpName %gl_FragCoord "gl_FragCoord"
OpName %tint_symbol "tint_symbol"
OpName %tint_symbol_2 "tint_symbol_2"
OpName %tint_symbol_3 "tint_symbol_3"
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_4 "tint_symbol_4"
OpName %tint_symbol_1 "tint_symbol_1"
OpName %main "main"
OpDecorate %tint_symbol BuiltIn FragCoord
OpDecorate %tint_symbol_2 Location 0
OpDecorate %tint_symbol_3 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
%gl_FragCoord = OpVariable %_ptr_Private_v4float Private %5
%_ptr_Input_v4float = OpTypePointer Input %v4float
%tint_symbol = OpVariable %_ptr_Input_v4float Input
%_ptr_Output_v4float = OpTypePointer Output %v4float
%tint_symbol_2 = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Output_float = OpTypePointer Output %float
%tint_symbol_3 = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%16 = OpTypeFunction %void
%float_0 = OpConstant %float 0
%21 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
%uint = OpTypeInt 32 0
%uint_2 = OpConstant %uint 2
%main_out = OpTypeStruct %v4float %float
%26 = OpTypeFunction %void %main_out
%main_1 = OpFunction %void None %16
%19 = OpLabel
OpStore %outColor %21
%24 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_2
%25 = OpLoad %float %24
OpStore %gl_FragDepth %25
OpReturn
OpFunctionEnd
%tint_symbol_4 = OpFunction %void None %26
%tint_symbol_1 = OpFunctionParameter %main_out
%30 = OpLabel
%31 = OpCompositeExtract %v4float %tint_symbol_1 0
OpStore %tint_symbol_2 %31
%32 = OpCompositeExtract %float %tint_symbol_1 1
OpStore %tint_symbol_3 %32
OpReturn
OpFunctionEnd
%main = OpFunction %void None %16
%34 = OpLabel
%35 = OpLoad %v4float %tint_symbol
OpStore %gl_FragCoord %35
%36 = OpFunctionCall %void %main_1
%38 = OpLoad %v4float %outColor
%39 = OpLoad %float %gl_FragDepth
%40 = OpCompositeConstruct %main_out %38 %39
%37 = OpFunctionCall %void %tint_symbol_4 %40
OpReturn
OpFunctionEnd