blob: e3574b561428c1d4c00036fe54598801944730b6 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 23
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %x_1_1_1
OpExecutionMode %main OriginUpperLeft
OpExecutionMode %main DepthReplacing
OpName %x_1_1_1 "x_1_1_1"
OpName %x_1 "x_1"
OpName %main_1 "main_1"
OpName %main_out "main_out"
OpMemberName %main_out 0 "x_1_1"
OpName %main_inner "main_inner"
OpName %main "main"
OpDecorate %x_1_1_1 BuiltIn FragDepth
OpMemberDecorate %main_out 0 Offset 0
%float = OpTypeFloat 32
%_ptr_Output_float = OpTypePointer Output %float
%4 = OpConstantNull %float
%x_1_1_1 = OpVariable %_ptr_Output_float Output %4
%float_0 = OpConstant %float 0
%_ptr_Private_float = OpTypePointer Private %float
%x_1 = OpVariable %_ptr_Private_float Private %float_0
%void = OpTypeVoid
%8 = OpTypeFunction %void
%main_out = OpTypeStruct %float
%12 = OpTypeFunction %main_out
%main_1 = OpFunction %void None %8
%11 = OpLabel
OpReturn
OpFunctionEnd
%main_inner = OpFunction %main_out None %12
%15 = OpLabel
%16 = OpFunctionCall %void %main_1
%17 = OpLoad %float %x_1
%18 = OpCompositeConstruct %main_out %17
OpReturnValue %18
OpFunctionEnd
%main = OpFunction %void None %8
%20 = OpLabel
%21 = OpFunctionCall %main_out %main_inner
%22 = OpCompositeExtract %float %21 0
OpStore %x_1_1_1 %22
OpReturn
OpFunctionEnd