From 1bbff25a2b7db6ce502a5f665ca1cafad5348995 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Beaufort?= Date: Wed, 12 Apr 2023 10:40:35 +0200 Subject: [PATCH] WIP --- src/sample/videoUploadingWebCodecs/main.ts | 4 ++-- src/types.d.ts | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/sample/videoUploadingWebCodecs/main.ts b/src/sample/videoUploadingWebCodecs/main.ts index ed466d30..4566708e 100644 --- a/src/sample/videoUploadingWebCodecs/main.ts +++ b/src/sample/videoUploadingWebCodecs/main.ts @@ -101,7 +101,7 @@ const init: SampleInit = async ({ canvas, pageState }) => { { binding: 2, resource: device.importExternalTexture({ - source: videoFrame as HTMLVideoElement, + source: videoFrame as any, }), }, ], @@ -145,7 +145,7 @@ const init: SampleInit = async ({ canvas, pageState }) => { const VideoUploading: () => JSX.Element = () => makeSample({ name: 'Video Uploading with WebCodecs', - description: 'This example shows how to upload video frame from WebCodecs to WebGPU.', + description: 'This example shows how to upload VideoFrame to WebGPU.', init, sources: [ { diff --git a/src/types.d.ts b/src/types.d.ts index 38b5c201..b12b0998 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -7,10 +7,6 @@ declare module '*.module.css' { interface HTMLCanvasElement extends HTMLElement { getContext(contextId: 'webgpu'): GPUPresentationContext | null; } -interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase { - source: HTMLVideoElement | VideoFrame; - colorSpace?: PredefinedColorSpace; -} declare const __SOURCE__: string;