Skip to content

Commit e7be525

Browse files
committed
Fix crashes
1 parent 8268143 commit e7be525

File tree

4 files changed

+5
-13
lines changed

4 files changed

+5
-13
lines changed

packages/dev/core/src/Engines/WebGPU/webgpuTextureHelper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1676,7 +1676,7 @@ export class WebGPUTextureHelper {
16761676
baseArrayLayer: 0,
16771677
baseMipLevel: 0,
16781678
arrayLayerCount: 6,
1679-
aspect: WebGPUTextureHelper.HasDepthAndStencilAspects(gpuTextureWrapper.format) ? WebGPUConstants.TextureAspect.DepthOnly : WebGPUConstants.TextureAspect.All,
1679+
aspect: WebGPUConstants.TextureAspect.All,
16801680
},
16811681
isStorageTexture
16821682
);
@@ -1708,7 +1708,7 @@ export class WebGPUTextureHelper {
17081708
baseArrayLayer: 0,
17091709
baseMipLevel: 0,
17101710
arrayLayerCount: texture.is3D ? 1 : layerCount,
1711-
aspect: WebGPUTextureHelper.HasDepthAndStencilAspects(gpuTextureWrapper.format) ? WebGPUConstants.TextureAspect.DepthOnly : WebGPUConstants.TextureAspect.All,
1711+
aspect: WebGPUConstants.TextureAspect.All,
17121712
},
17131713
isStorageTexture
17141714
);

packages/dev/core/src/Engines/WebGPU/webgpuTintWASM.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@ export class WebGPUTintWASM {
6767
console.log(ccode);
6868
console.log("***********************************************");
6969
}
70-
return ccode;
70+
return "diagnostic(off, derivative_uniformity);\n" + ccode;
7171
}
7272
}

packages/tools/babylonServer/public/twgsl/twgsl.js

Lines changed: 2 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
227 KB
Binary file not shown.

0 commit comments

Comments
 (0)