webgpu-samples icon indicating copy to clipboard operation
webgpu-samples copied to clipboard

Update canvas size configuration when devicePixelRatio != 1

Open wewindy opened this issue 3 years ago • 1 comments

  • using CSS to control canvas DOM's height and width
  • multiply devicePixelRatio to canvas' height and width
  • remove size field when GPUCanvasContext.configure()

All samples work well, the console is clean again

wewindy avatar Jul 10 '22 21:07 wewindy

@austinEng PTAL

wewindy avatar Jul 11 '22 19:07 wewindy