diff --git a/src/sample/computeBoids/main.ts b/src/sample/computeBoids/main.ts index f63ee6d1..cb9e8fde 100644 --- a/src/sample/computeBoids/main.ts +++ b/src/sample/computeBoids/main.ts @@ -106,7 +106,7 @@ const init: SampleInit = async ({ canvas, pageState, gui }) => { }, }); - const renderPassDescriptor = { + const renderPassDescriptor: GPURenderPassDescriptor = { colorAttachments: [ { view: undefined as GPUTextureView, // Assigned later @@ -117,7 +117,7 @@ const init: SampleInit = async ({ canvas, pageState, gui }) => { ], }; - const computePassDescriptor = {}; + const computePassDescriptor: GPUComputePassDescriptor = {}; let querySet: GPUQuerySet | undefined = undefined; if (hasTimestampQuery) {