浏览代码

Finalize Update

sebavan 5 年之前
父节点
当前提交
ba872c1bd4
共有 2 个文件被更改,包括 2 次插入4 次删除
  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;
 }