GPUTextureViewDescriptor constructor
GPUTextureViewDescriptor({
- GPUTextureFormat? format,
- GPUTextureViewDimension? dimension,
- GPUTextureAspect? aspect,
- int? baseMipLevel,
- int? mipLevelCount,
- int? baseArrayLayer,
- 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);