Pārlūkot izejas kodu

Finalize Update

sebavan 5 gadi atpakaļ
vecāks
revīzija
ba872c1bd4
2 mainītis faili ar 2 papildinājumiem un 4 dzēšanām
  1. 2 3
      src/Engines/webgpuEngine.ts
  2. 0 1
      src/LibDeclarations/webgpu.d.ts

+ 2 - 3
src/Engines/webgpuEngine.ts

@@ -1005,10 +1005,9 @@ export class WebGPUEngine extends Engine {
             origin: {
                 x: 0,
                 y: 0,
-                z: 0
+                z: Math.max(face, 0)
             },
-            mipLevel: mip,
-            arrayLayer: Math.max(face, 0),
+            mipLevel: mip
         };
         const textureExtent = {
             width,

+ 0 - 1
src/LibDeclarations/webgpu.d.ts

@@ -297,7 +297,6 @@ interface GPUBufferCopyView extends GPUTextureDataLayout {
 interface GPUTextureCopyView {
   texture: GPUTexture;
   mipLevel?: number;
-  arrayLayer?: number;
   origin?: GPUOrigin3D;
 }