blob: a305e7a8cc9c3b3ea1f3e2002d1358b46c084685 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 35
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %tint_symbol_1 %tint_symbol_2
OpExecutionMode %main OriginUpperLeft
OpExecutionMode %main DepthReplacing
OpName %color_out "color_out"
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 "color_out_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
%color_out = 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_1 = OpConstant %float 1
%float_0 = OpConstant %float 0
%19 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%float_0_5 = OpConstant %float 0.5
%main_out = OpTypeStruct %v4float %float
%21 = OpTypeFunction %void %main_out
%main_1 = OpFunction %void None %13
%16 = OpLabel
OpStore %color_out %19
OpStore %gl_FragDepth %float_0_5
OpReturn
OpFunctionEnd
%tint_symbol_3 = OpFunction %void None %21
%tint_symbol = OpFunctionParameter %main_out
%25 = OpLabel
%26 = OpCompositeExtract %v4float %tint_symbol 0
OpStore %tint_symbol_1 %26
%27 = OpCompositeExtract %float %tint_symbol 1
OpStore %tint_symbol_2 %27
OpReturn
OpFunctionEnd
%main = OpFunction %void None %13
%29 = OpLabel
%30 = OpFunctionCall %void %main_1
%32 = OpLoad %v4float %color_out
%33 = OpLoad %float %gl_FragDepth
%34 = OpCompositeConstruct %main_out %32 %33
%31 = OpFunctionCall %void %tint_symbol_3 %34
OpReturn
OpFunctionEnd