GPUStorageTextureBindingLayout constructor

GPUStorageTextureBindingLayout({
  1. GPUStorageTextureAccess? access,
  2. GPUTextureFormat? format,
  3. GPUTextureViewDimension? viewDimension,
})

Implementation

factory GPUStorageTextureBindingLayout(
        {GPUStorageTextureAccess? access,
        GPUTextureFormat? format,
        GPUTextureViewDimension? viewDimension}) =>
    GPUStorageTextureBindingLayout._(
        access: access?.value ?? GPUStorageTextureAccess.writeOnly.value,
        format: format?.value ?? undefined,
        viewDimension:
            viewDimension?.value ?? GPUTextureViewDimension.value2d.value);