ncilProgram, 'stencil']
        ];

        function validFilters(magFilter, minFilter) {
            return magFilter == gl.NEAREST &&
                   (minFilter == gl.NEAREST || minFilter == gl.NEAREST_MIPMAP_NEAREST);
        }

        for (const program of programs) {
            gl.useProgram(program[0]);
            for (const mode of modes) {
                gl.texParameteri(gl.TEXTURE_2D, ext.DEPTH_STENCIL_TEXTURE_MODE_WEBGL, mode[0]);
                for (const magFilter of magFilters) {
      