File tree Expand file tree Collapse file tree 34 files changed +34
-34
lines changed Expand file tree Collapse file tree 34 files changed +34
-34
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const device = await adapter?.requestDevice({
2323} ) ;
2424quitIfWebGPUNotAvailable ( adapter , device ) ;
2525
26- const context = canvas . getContext ( 'webgpu' ) as GPUCanvasContext ;
26+ const context = canvas . getContext ( 'webgpu' ) ;
2727const presentationFormat = navigator . gpu . getPreferredCanvasFormat ( ) ;
2828
2929context . configure ( {
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ const settings = {
3131 dynamicOffsets : Boolean ( params . get ( 'dynamicOffsets' ) ) ,
3232} ;
3333
34- const context = canvas . getContext ( 'webgpu' ) as GPUCanvasContext ;
34+ const context = canvas . getContext ( 'webgpu' ) ;
3535
3636const devicePixelRatio = window . devicePixelRatio ;
3737canvas . width = canvas . clientWidth * devicePixelRatio ;
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ export const SampleInitFactoryWebGPU = async (
133133 } ) ;
134134 quitIfWebGPUNotAvailable ( adapter , device ) ;
135135
136- const context = canvas . getContext ( 'webgpu' ) as GPUCanvasContext ;
136+ const context = canvas . getContext ( 'webgpu' ) ;
137137 const devicePixelRatio = window . devicePixelRatio ;
138138 canvas . width = canvas . clientWidth * devicePixelRatio ;
139139 canvas . height = canvas . clientHeight * devicePixelRatio ;
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ const adapter = await navigator.gpu?.requestAdapter({
4545} ) ;
4646const device = await adapter ?. requestDevice ( ) ;
4747quitIfWebGPUNotAvailable ( adapter , device ) ;
48- const context = canvas . getContext ( 'webgpu' ) as GPUCanvasContext ;
48+ const context = canvas . getContext ( 'webgpu' ) ;
4949
5050const devicePixelRatio = window . devicePixelRatio ;
5151canvas . width = canvas . clientWidth * devicePixelRatio ;
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ if (canvas.parentNode) {
3232 console . error ( 'canvas.parentNode is null' ) ;
3333}
3434
35- const context = canvas . getContext ( 'webgpu' ) as GPUCanvasContext ;
35+ const context = canvas . getContext ( 'webgpu' ) ;
3636const devicePixelRatio = window . devicePixelRatio ;
3737canvas . width = canvas . clientWidth * devicePixelRatio ;
3838canvas . height = canvas . clientHeight * devicePixelRatio ;
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ const devicePixelRatio = window.devicePixelRatio;
5656canvas . width = canvas . clientWidth * devicePixelRatio ;
5757canvas . height = canvas . clientHeight * devicePixelRatio ;
5858
59- const context = canvas . getContext ( 'webgpu' ) as GPUCanvasContext ;
59+ const context = canvas . getContext ( 'webgpu' ) ;
6060context . configure ( {
6161 device,
6262 format : presentationFormat ,
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const adapter = await navigator.gpu?.requestAdapter({
1919const device = await adapter ?. requestDevice ( ) ;
2020quitIfWebGPUNotAvailable ( adapter , device ) ;
2121
22- const context = canvas . getContext ( 'webgpu' ) as GPUCanvasContext ;
22+ const context = canvas . getContext ( 'webgpu' ) ;
2323
2424const devicePixelRatio = window . devicePixelRatio ;
2525canvas . width = canvas . clientWidth * devicePixelRatio ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ const device = await adapter?.requestDevice({
2525} ) ;
2626quitIfWebGPUNotAvailable ( adapter , device ) ;
2727
28- const context = canvas . getContext ( 'webgpu' ) as GPUCanvasContext ;
28+ const context = canvas . getContext ( 'webgpu' ) ;
2929
3030const devicePixelRatio = window . devicePixelRatio ;
3131canvas . width = canvas . clientWidth * devicePixelRatio ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const adapter = await navigator.gpu?.requestAdapter({
1919const device = await adapter ?. requestDevice ( ) ;
2020quitIfWebGPUNotAvailable ( adapter , device ) ;
2121
22- const context = canvas . getContext ( 'webgpu' ) as GPUCanvasContext ;
22+ const context = canvas . getContext ( 'webgpu' ) ;
2323
2424const devicePixelRatio = window . devicePixelRatio ;
2525canvas . width = canvas . clientWidth * devicePixelRatio ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const adapter = await navigator.gpu?.requestAdapter({
1111const device = await adapter ?. requestDevice ( ) ;
1212quitIfWebGPUNotAvailable ( adapter , device ) ;
1313
14- const context = canvas . getContext ( 'webgpu' ) as GPUCanvasContext ;
14+ const context = canvas . getContext ( 'webgpu' ) ;
1515const devicePixelRatio = window . devicePixelRatio ;
1616canvas . width = canvas . clientWidth * devicePixelRatio ;
1717canvas . height = canvas . clientHeight * devicePixelRatio ;
You can’t perform that action at this time.
0 commit comments