| ; |
| ; any |
| ; |
| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 26 |
| ; Schema: 0 |
| OpCapability Shader |
| %25 = 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" |
| 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 |
| %8 = OpTypeFunction %float |
| %float_1 = OpConstant %float 1 |
| %void = OpTypeVoid |
| %13 = 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 %float None %8 |
| %9 = OpLabel |
| OpReturnValue %float_1 |
| OpFunctionEnd |
| %any = OpFunction %void None %13 |
| %14 = OpLabel |
| %15 = OpFunctionCall %float %any_inner |
| %16 = OpAccessChain %_ptr_PushConstant_float %tint_immediate_data %uint_0 |
| %20 = OpLoad %float %16 None |
| %21 = OpAccessChain %_ptr_PushConstant_float %tint_immediate_data %uint_1 |
| %23 = OpLoad %float %21 None |
| %24 = OpExtInst %float %25 NClamp %15 %20 %23 |
| OpStore %any_frag_depth_Output %24 None |
| OpReturn |
| OpFunctionEnd |
| ; |
| ; less |
| ; |
| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 26 |
| ; Schema: 0 |
| OpCapability Shader |
| %25 = OpExtInstImport "GLSL.std.450" |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %less "less" %less_frag_depth_Output |
| OpExecutionMode %less OriginUpperLeft |
| OpExecutionMode %less 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 %less_frag_depth_Output "less_frag_depth_Output" |
| OpName %less_inner "less_inner" |
| 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 |
| %8 = OpTypeFunction %float |
| %float_1 = OpConstant %float 1 |
| %void = OpTypeVoid |
| %13 = 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 %float None %8 |
| %9 = OpLabel |
| OpReturnValue %float_1 |
| OpFunctionEnd |
| %less = OpFunction %void None %13 |
| %14 = OpLabel |
| %15 = OpFunctionCall %float %less_inner |
| %16 = OpAccessChain %_ptr_PushConstant_float %tint_immediate_data %uint_0 |
| %20 = OpLoad %float %16 None |
| %21 = OpAccessChain %_ptr_PushConstant_float %tint_immediate_data %uint_1 |
| %23 = OpLoad %float %21 None |
| %24 = OpExtInst %float %25 NClamp %15 %20 %23 |
| OpStore %less_frag_depth_Output %24 None |
| OpReturn |
| OpFunctionEnd |
| ; |
| ; greater |
| ; |
| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 26 |
| ; Schema: 0 |
| OpCapability Shader |
| %25 = OpExtInstImport "GLSL.std.450" |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %greater "greater" %greater_frag_depth_Output |
| OpExecutionMode %greater OriginUpperLeft |
| OpExecutionMode %greater 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 %greater_frag_depth_Output "greater_frag_depth_Output" |
| OpName %greater_inner "greater_inner" |
| 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 |
| %8 = OpTypeFunction %float |
| %float_1 = OpConstant %float 1 |
| %void = OpTypeVoid |
| %13 = 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 %float None %8 |
| %9 = OpLabel |
| OpReturnValue %float_1 |
| OpFunctionEnd |
| %greater = OpFunction %void None %13 |
| %14 = OpLabel |
| %15 = OpFunctionCall %float %greater_inner |
| %16 = OpAccessChain %_ptr_PushConstant_float %tint_immediate_data %uint_0 |
| %20 = OpLoad %float %16 None |
| %21 = OpAccessChain %_ptr_PushConstant_float %tint_immediate_data %uint_1 |
| %23 = OpLoad %float %21 None |
| %24 = OpExtInst %float %25 NClamp %15 %20 %23 |
| OpStore %greater_frag_depth_Output %24 None |
| OpReturn |
| OpFunctionEnd |