glretrace: Swizzle GL_ARB_shader_subroutine subroutine indices.
diff --git a/specs/stdapi.py b/specs/stdapi.py
index c2a154d..baab081 100644
--- a/specs/stdapi.py
+++ b/specs/stdapi.py
@@ -75,6 +75,13 @@
         visitor = MutableRebuilder()
         return visitor.visit(self)
 
+    def depends(self, other):
+        '''Whether this type depends on another.'''
+
+        collector = Collector()
+        collector.visit(self)
+        return other in collector.types
+
 
 class _Void(Type):
     """Singleton void type."""