| ; |
| ; less |
| ; |
| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 36 |
| ; Schema: 0 |
| OpCapability Shader |
| %35 = 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_block_tint_explicit_layout 0 "inner" |
| OpName %tint_immediate_data_block_tint_explicit_layout "tint_immediate_data_block_tint_explicit_layout" |
| 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" |
| OpDecorate %_arr_uint_uint_2 ArrayStride 4 |
| OpMemberDecorate %tint_immediate_data_block_tint_explicit_layout 0 Offset 0 |
| OpDecorate %tint_immediate_data_block_tint_explicit_layout Block |
| OpDecorate %less_frag_depth_Output BuiltIn FragDepth |
| %uint = OpTypeInt 32 0 |
| %uint_2 = OpConstant %uint 2 |
| %_arr_uint_uint_2 = OpTypeArray %uint %uint_2 |
| %tint_immediate_data_block_tint_explicit_layout = OpTypeStruct %_arr_uint_uint_2 |
| %_ptr_PushConstant_tint_immediate_data_block_tint_explicit_layout = OpTypePointer PushConstant %tint_immediate_data_block_tint_explicit_layout |
| %1 = OpVariable %_ptr_PushConstant_tint_immediate_data_block_tint_explicit_layout PushConstant |
| %float = OpTypeFloat 32 |
| %_ptr_Output_float = OpTypePointer Output %float |
| %less_frag_depth_Output = OpVariable %_ptr_Output_float Output |
| %FragDepthLessOutput = OpTypeStruct %float |
| %12 = OpTypeFunction %FragDepthLessOutput |
| %float_1 = OpConstant %float 1 |
| %14 = OpConstantComposite %FragDepthLessOutput %float_1 |
| %void = OpTypeVoid |
| %18 = OpTypeFunction %void |
| %_ptr_PushConstant__arr_uint_uint_2 = OpTypePointer PushConstant %_arr_uint_uint_2 |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_PushConstant_uint = OpTypePointer PushConstant %uint |
| %uint_1 = OpConstant %uint 1 |
| %less_inner = OpFunction %FragDepthLessOutput None %12 |
| %13 = OpLabel |
| OpReturnValue %14 |
| OpFunctionEnd |
| %less = OpFunction %void None %18 |
| %19 = OpLabel |
| %20 = OpFunctionCall %FragDepthLessOutput %less_inner |
| %21 = OpCompositeExtract %float %20 0 |
| %22 = OpAccessChain %_ptr_PushConstant__arr_uint_uint_2 %1 %uint_0 |
| %25 = OpAccessChain %_ptr_PushConstant_uint %22 %uint_0 |
| %27 = OpLoad %uint %25 None |
| %28 = OpBitcast %float %27 |
| %29 = OpAccessChain %_ptr_PushConstant__arr_uint_uint_2 %1 %uint_0 |
| %30 = OpAccessChain %_ptr_PushConstant_uint %29 %uint_1 |
| %32 = OpLoad %uint %30 None |
| %33 = OpBitcast %float %32 |
| %34 = OpExtInst %float %35 NClamp %21 %28 %33 |
| OpStore %less_frag_depth_Output %34 None |
| OpReturn |
| OpFunctionEnd |
| ; |
| ; greater |
| ; |
| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 36 |
| ; Schema: 0 |
| OpCapability Shader |
| %35 = 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_block_tint_explicit_layout 0 "inner" |
| OpName %tint_immediate_data_block_tint_explicit_layout "tint_immediate_data_block_tint_explicit_layout" |
| 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" |
| OpDecorate %_arr_uint_uint_2 ArrayStride 4 |
| OpMemberDecorate %tint_immediate_data_block_tint_explicit_layout 0 Offset 0 |
| OpDecorate %tint_immediate_data_block_tint_explicit_layout Block |
| OpDecorate %greater_frag_depth_Output BuiltIn FragDepth |
| %uint = OpTypeInt 32 0 |
| %uint_2 = OpConstant %uint 2 |
| %_arr_uint_uint_2 = OpTypeArray %uint %uint_2 |
| %tint_immediate_data_block_tint_explicit_layout = OpTypeStruct %_arr_uint_uint_2 |
| %_ptr_PushConstant_tint_immediate_data_block_tint_explicit_layout = OpTypePointer PushConstant %tint_immediate_data_block_tint_explicit_layout |
| %1 = OpVariable %_ptr_PushConstant_tint_immediate_data_block_tint_explicit_layout PushConstant |
| %float = OpTypeFloat 32 |
| %_ptr_Output_float = OpTypePointer Output %float |
| %greater_frag_depth_Output = OpVariable %_ptr_Output_float Output |
| %FragDepthGreaterOutput = OpTypeStruct %float |
| %12 = OpTypeFunction %FragDepthGreaterOutput |
| %float_1 = OpConstant %float 1 |
| %14 = OpConstantComposite %FragDepthGreaterOutput %float_1 |
| %void = OpTypeVoid |
| %18 = OpTypeFunction %void |
| %_ptr_PushConstant__arr_uint_uint_2 = OpTypePointer PushConstant %_arr_uint_uint_2 |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_PushConstant_uint = OpTypePointer PushConstant %uint |
| %uint_1 = OpConstant %uint 1 |
| %greater_inner = OpFunction %FragDepthGreaterOutput None %12 |
| %13 = OpLabel |
| OpReturnValue %14 |
| OpFunctionEnd |
| %greater = OpFunction %void None %18 |
| %19 = OpLabel |
| %20 = OpFunctionCall %FragDepthGreaterOutput %greater_inner |
| %21 = OpCompositeExtract %float %20 0 |
| %22 = OpAccessChain %_ptr_PushConstant__arr_uint_uint_2 %1 %uint_0 |
| %25 = OpAccessChain %_ptr_PushConstant_uint %22 %uint_0 |
| %27 = OpLoad %uint %25 None |
| %28 = OpBitcast %float %27 |
| %29 = OpAccessChain %_ptr_PushConstant__arr_uint_uint_2 %1 %uint_0 |
| %30 = OpAccessChain %_ptr_PushConstant_uint %29 %uint_1 |
| %32 = OpLoad %uint %30 None |
| %33 = OpBitcast %float %32 |
| %34 = OpExtInst %float %35 NClamp %21 %28 %33 |
| OpStore %greater_frag_depth_Output %34 None |
| OpReturn |
| OpFunctionEnd |