GPUExternalTextureDescriptor constructor

GPUExternalTextureDescriptor({
  1. required HTMLVideoElement source,
  2. PredefinedColorSpace? colorSpace,
})

Implementation

factory GPUExternalTextureDescriptor(
        {required HTMLVideoElement source,
        PredefinedColorSpace? colorSpace}) =>
    GPUExternalTextureDescriptor._(
        source: source,
        colorSpace: colorSpace?.value ?? PredefinedColorSpace.srgb.value);