importExternalTexture method

GPUExternalTexture importExternalTexture(
  1. GPUExternalTextureDescriptor descriptor
)

The importExternalTexture() method of the GPUDevice interface takes an HTMLVideoElement or a VideoFrame object as an input and returns a GPUExternalTexture wrapper object containing a snapshot of the video that can be used as a frame in GPU rendering operations.

Implementation

external GPUExternalTexture importExternalTexture(
    GPUExternalTextureDescriptor descriptor);