GPUTextureViewDescriptor constructor

GPUTextureViewDescriptor({
  1. GPUTextureFormat? format,
  2. GPUTextureViewDimension? dimension,
  3. GPUTextureAspect? aspect,
  4. int? baseMipLevel,
  5. int? mipLevelCount,
  6. int? baseArrayLayer,
  7. int? arrayLayerCount,
})

Implementation

factory GPUTextureViewDescriptor(
        {GPUTextureFormat? format,
        GPUTextureViewDimension? dimension,
        GPUTextureAspect? aspect,
        int? baseMipLevel,
        int? mipLevelCount,
        int? baseArrayLayer,
        int? arrayLayerCount}) =>
    GPUTextureViewDescriptor._(
        format: format?.value ?? undefined,
        dimension: dimension?.value ?? undefined,
        aspect: aspect?.value ?? GPUTextureAspect.all.value,
        baseMipLevel: baseMipLevel ?? 0,
        mipLevelCount: mipLevelCount ?? undefined,
        baseArrayLayer: baseArrayLayer ?? 0,
        arrayLayerCount: arrayLayerCount ?? undefined);