Skip to content

Experimental WebGPU renderer #703

@kixelated

Description

@kixelated

WARNING This is a pre-mature optimization or gimmick at best.

We currently use Canvas2D to render individual frames. This is pretty basic but works.

All major browsers support WebGPU now. It has a copyExternalImageToTexture method that apparently copies a VideoFrame to a renderable texture. This apparently avoids a copy so it might be faster than Canvas2D but probably not.

The main benefit of WebGPU is being able to do other stuff, like run AI models on pixel data without copying to the CPU. Or rendering a person's face on a teapot. Or using shaders for gimmicky effects. None of this is really generic enough for a MoQ library but maybe somebody wants to have some fun.

Metadata

Metadata

Assignees

No one assigned

    Labels

    javascriptPull requests that update Javascript code

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions