RE_2D, gl[pname], gl.REPEAT);
    }

    if (!gl.createSampler) return;

    sampler = gl.createSampler();
    for (const pname of pnames) {
        gl.samplerParameteri(sampler, gl[pname], ext.MIRROR_CLAMP_TO_EDGE_EXT);
        wtu.glErrorShouldBe(gl, gl.NO_ERROR, "should be no errors from samplerParameteri");
        shouldBe(`gl.getSamplerParameter(sampler, gl.${pname})`, "ext.MIRROR_CLAMP_TO_EDGE_EXT");
        gl.samplerParameteri(sampler, gl[pname], gl.REPEAT);

        gl.samplerParameterf(sampler, g