Browse Source

Don't clear mipmaps before generating them

Popov72 4 years ago
parent
commit
723756977d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Engines/WebGPU/webgpuTextureHelper.ts

+ 1 - 1
src/Engines/WebGPU/webgpuTextureHelper.ts

@@ -840,7 +840,7 @@ export class WebGPUTextureHelper {
                         arrayLayerCount: 1,
                         baseArrayLayer: faceIndex,
                     }),
-                    loadValue: { r: 0.0, g: 0.0, b: 0.0, a: 0.0 },
+                    loadValue: WebGPUConstants.LoadOp.Load,
                 }],
             });