Skip to content

Commit f868204

Browse files
committed
fix: type
1 parent c3368c7 commit f868204

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/DenoGpuWrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class DenoGpuWrapper<T extends Layout> extends GpuWrapper<T> {
4444
}
4545

4646
export async function initDeno<T extends Layout>
47-
(info: Omit<GpuWrapperInfo<T>, "texture"> & { width: number, height: number }) {
47+
(info: Omit<GpuWrapperInfo<T>, "getTexture"> & { width: number, height: number }) {
4848
const root = await tgpu.init()
4949
const { texture, outputBuffer } = createCapture(
5050
root.device,

src/GpuWrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export class GpuWrapper<T extends Layout> {
119119
}
120120

121121
export async function initCanvas<T extends Layout>
122-
(info: Omit<GpuWrapperInfo<T>, "texture"> & { canvas: HTMLCanvasElement }) {
122+
(info: Omit<GpuWrapperInfo<T>, "getTexture"> & { canvas: HTMLCanvasElement }) {
123123
const root = await tgpu.init()
124124
const ctx = info.canvas.getContext("webgpu") as unknown as GPUCanvasContext
125125

0 commit comments

Comments
 (0)