Sets the minDepth and maxDepth filter properties and turns on depth filtering by setting useDepth to true.