blob: 544b4ffa52b787ed3318ada20a1b4eb12c8ab5b3 [file] [log] [blame]
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %outColor %gl_FragDepth %gl_FragCoord
OpExecutionMode %main OriginUpperLeft
OpExecutionMode %main DepthReplacing
OpExecutionMode %main DepthUnchanged
OpSource GLSL 430
OpName %main "main"
OpName %outColor "outColor"
OpName %gl_FragDepth "gl_FragDepth"
OpName %gl_FragCoord "gl_FragCoord"
OpDecorate %outColor Location 0
OpDecorate %gl_FragDepth BuiltIn FragDepth
OpDecorate %gl_FragCoord BuiltIn FragCoord
%void = OpTypeVoid
%7 = OpTypeFunction %void
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%outColor = OpVariable %_ptr_Output_v4float Output
%float_0 = OpConstant %float 0
%12 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
%_ptr_Output_float = OpTypePointer Output %float
%gl_FragDepth = OpVariable %_ptr_Output_float Output
%_ptr_Input_v4float = OpTypePointer Input %v4float
%gl_FragCoord = OpVariable %_ptr_Input_v4float Input
%uint = OpTypeInt 32 0
%uint_2 = OpConstant %uint 2
%_ptr_Input_float = OpTypePointer Input %float
%main = OpFunction %void None %7
%18 = OpLabel
OpStore %outColor %12
%19 = OpAccessChain %_ptr_Input_float %gl_FragCoord %uint_2
%20 = OpLoad %float %19
OpStore %gl_FragDepth %20
OpReturn
OpFunctionEnd