 = device.createTexture({
        format: canvasTexture.format,
        usage: GPUTextureUsage.RENDER_ATTACHMENT,
        size: [canvasTexture.width, canvasTexture.height],
        sampleCount: 4,
      });
    }

    // Set the multisample texture as the texture to render to
    renderPassDescriptor.colorAttachments[0].view =
        multisampleTexture.createView();
    // Set the canvas texture as the texture to "resolve"
    // the multisample texture to.
    renderPassDescriptor.colorAttachments[0].reso