blob: 09a3a15820e0bb5a2661606cc6a6bc5ed23363d1 [file] [log] [blame]
;
; any
;
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 29
; Schema: 0
OpCapability Shader
%28 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %any "any" %any_frag_depth_Output
OpExecutionMode %any OriginUpperLeft
OpExecutionMode %any DepthReplacing
OpMemberName %tint_immediate_data_struct 0 "tint_frag_depth_min"
OpMemberName %tint_immediate_data_struct 1 "tint_frag_depth_max"
OpName %tint_immediate_data_struct "tint_immediate_data_struct"
OpName %tint_immediate_data "tint_immediate_data"
OpName %any_frag_depth_Output "any_frag_depth_Output"
OpName %any_inner "any_inner"
OpMemberName %FragDepthAnyOutput 0 "frag_depth"
OpName %FragDepthAnyOutput "FragDepthAnyOutput"
OpName %any "any"
OpMemberDecorate %tint_immediate_data_struct 0 Offset 0
OpMemberDecorate %tint_immediate_data_struct 1 Offset 4
OpDecorate %tint_immediate_data_struct Block
OpDecorate %any_frag_depth_Output BuiltIn FragDepth
%float = OpTypeFloat 32
%tint_immediate_data_struct = OpTypeStruct %float %float
%_ptr_PushConstant_tint_immediate_data_struct = OpTypePointer PushConstant %tint_immediate_data_struct
%tint_immediate_data = OpVariable %_ptr_PushConstant_tint_immediate_data_struct PushConstant
%_ptr_Output_float = OpTypePointer Output %float
%any_frag_depth_Output = OpVariable %_ptr_Output_float Output
%FragDepthAnyOutput = OpTypeStruct %float
%9 = OpTypeFunction %FragDepthAnyOutput
%float_1 = OpConstant %float 1
%11 = OpConstantComposite %FragDepthAnyOutput %float_1
%void = OpTypeVoid
%15 = OpTypeFunction %void
%_ptr_PushConstant_float = OpTypePointer PushConstant %float
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%uint_1 = OpConstant %uint 1
%any_inner = OpFunction %FragDepthAnyOutput None %9
%10 = OpLabel
OpReturnValue %11
OpFunctionEnd
%any = OpFunction %void None %15
%16 = OpLabel
%17 = OpFunctionCall %FragDepthAnyOutput %any_inner
%18 = OpCompositeExtract %float %17 0
%19 = OpAccessChain %_ptr_PushConstant_float %tint_immediate_data %uint_0
%23 = OpLoad %float %19 None
%24 = OpAccessChain %_ptr_PushConstant_float %tint_immediate_data %uint_1
%26 = OpLoad %float %24 None
%27 = OpExtInst %float %28 NClamp %18 %23 %26
OpStore %any_frag_depth_Output %27 None
OpReturn
OpFunctionEnd
;
; less
;
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 29
; Schema: 0
OpCapability Shader
%28 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %less "less" %less_frag_depth_Output
OpExecutionMode %less OriginUpperLeft
OpExecutionMode %less DepthReplacing
OpExecutionMode %less DepthLess
OpMemberName %tint_immediate_data_struct 0 "tint_frag_depth_min"
OpMemberName %tint_immediate_data_struct 1 "tint_frag_depth_max"
OpName %tint_immediate_data_struct "tint_immediate_data_struct"
OpName %tint_immediate_data "tint_immediate_data"
OpName %less_frag_depth_Output "less_frag_depth_Output"
OpName %less_inner "less_inner"
OpMemberName %FragDepthLessOutput 0 "frag_depth"
OpName %FragDepthLessOutput "FragDepthLessOutput"
OpName %less "less"
OpMemberDecorate %tint_immediate_data_struct 0 Offset 0
OpMemberDecorate %tint_immediate_data_struct 1 Offset 4
OpDecorate %tint_immediate_data_struct Block
OpDecorate %less_frag_depth_Output BuiltIn FragDepth
%float = OpTypeFloat 32
%tint_immediate_data_struct = OpTypeStruct %float %float
%_ptr_PushConstant_tint_immediate_data_struct = OpTypePointer PushConstant %tint_immediate_data_struct
%tint_immediate_data = OpVariable %_ptr_PushConstant_tint_immediate_data_struct PushConstant
%_ptr_Output_float = OpTypePointer Output %float
%less_frag_depth_Output = OpVariable %_ptr_Output_float Output
%FragDepthLessOutput = OpTypeStruct %float
%9 = OpTypeFunction %FragDepthLessOutput
%float_1 = OpConstant %float 1
%11 = OpConstantComposite %FragDepthLessOutput %float_1
%void = OpTypeVoid
%15 = OpTypeFunction %void
%_ptr_PushConstant_float = OpTypePointer PushConstant %float
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%uint_1 = OpConstant %uint 1
%less_inner = OpFunction %FragDepthLessOutput None %9
%10 = OpLabel
OpReturnValue %11
OpFunctionEnd
%less = OpFunction %void None %15
%16 = OpLabel
%17 = OpFunctionCall %FragDepthLessOutput %less_inner
%18 = OpCompositeExtract %float %17 0
%19 = OpAccessChain %_ptr_PushConstant_float %tint_immediate_data %uint_0
%23 = OpLoad %float %19 None
%24 = OpAccessChain %_ptr_PushConstant_float %tint_immediate_data %uint_1
%26 = OpLoad %float %24 None
%27 = OpExtInst %float %28 NClamp %18 %23 %26
OpStore %less_frag_depth_Output %27 None
OpReturn
OpFunctionEnd
;
; greater
;
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 29
; Schema: 0
OpCapability Shader
%28 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %greater "greater" %greater_frag_depth_Output
OpExecutionMode %greater OriginUpperLeft
OpExecutionMode %greater DepthReplacing
OpExecutionMode %greater DepthGreater
OpMemberName %tint_immediate_data_struct 0 "tint_frag_depth_min"
OpMemberName %tint_immediate_data_struct 1 "tint_frag_depth_max"
OpName %tint_immediate_data_struct "tint_immediate_data_struct"
OpName %tint_immediate_data "tint_immediate_data"
OpName %greater_frag_depth_Output "greater_frag_depth_Output"
OpName %greater_inner "greater_inner"
OpMemberName %FragDepthGreaterOutput 0 "frag_depth"
OpName %FragDepthGreaterOutput "FragDepthGreaterOutput"
OpName %greater "greater"
OpMemberDecorate %tint_immediate_data_struct 0 Offset 0
OpMemberDecorate %tint_immediate_data_struct 1 Offset 4
OpDecorate %tint_immediate_data_struct Block
OpDecorate %greater_frag_depth_Output BuiltIn FragDepth
%float = OpTypeFloat 32
%tint_immediate_data_struct = OpTypeStruct %float %float
%_ptr_PushConstant_tint_immediate_data_struct = OpTypePointer PushConstant %tint_immediate_data_struct
%tint_immediate_data = OpVariable %_ptr_PushConstant_tint_immediate_data_struct PushConstant
%_ptr_Output_float = OpTypePointer Output %float
%greater_frag_depth_Output = OpVariable %_ptr_Output_float Output
%FragDepthGreaterOutput = OpTypeStruct %float
%9 = OpTypeFunction %FragDepthGreaterOutput
%float_1 = OpConstant %float 1
%11 = OpConstantComposite %FragDepthGreaterOutput %float_1
%void = OpTypeVoid
%15 = OpTypeFunction %void
%_ptr_PushConstant_float = OpTypePointer PushConstant %float
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%uint_1 = OpConstant %uint 1
%greater_inner = OpFunction %FragDepthGreaterOutput None %9
%10 = OpLabel
OpReturnValue %11
OpFunctionEnd
%greater = OpFunction %void None %15
%16 = OpLabel
%17 = OpFunctionCall %FragDepthGreaterOutput %greater_inner
%18 = OpCompositeExtract %float %17 0
%19 = OpAccessChain %_ptr_PushConstant_float %tint_immediate_data %uint_0
%23 = OpLoad %float %19 None
%24 = OpAccessChain %_ptr_PushConstant_float %tint_immediate_data %uint_1
%26 = OpLoad %float %24 None
%27 = OpExtInst %float %28 NClamp %18 %23 %26
OpStore %greater_frag_depth_Output %27 None
OpReturn
OpFunctionEnd