Define a MediaTexture source.

interface MediaTextureSource {
    source: TextureSource;
    shouldUpdate: boolean;
    sourceLoaded: boolean;
    sourceUploaded: boolean;
}

Properties

Original TextureSource to use.

shouldUpdate: boolean

Whether we should update the GPUTexture for this source.

sourceLoaded: boolean

Whether the source has been loaded.

sourceUploaded: boolean

Whether the source has been uploaded to the GPU.