Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
beaufortfrancois committed Apr 12, 2023
1 parent 245d806 commit 1bbff25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/sample/videoUploadingWebCodecs/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const init: SampleInit = async ({ canvas, pageState }) => {
{
binding: 2,
resource: device.importExternalTexture({
source: videoFrame as HTMLVideoElement,
source: videoFrame as any,
}),
},
],
Expand Down Expand Up @@ -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: [
{
Expand Down
4 changes: 0 additions & 4 deletions src/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 1bbff25

Please sign in to comment.