webgpu-samples
webgpu-samples copied to clipboard
Update canvas size configuration when devicePixelRatio != 1
- using CSS to control canvas DOM's height and width
- multiply devicePixelRatio to canvas' height and width
- remove
sizefield whenGPUCanvasContext.configure()
All samples work well, the console is clean again
@austinEng PTAL