瀏覽代碼

WebGPURenderer: Fix MSAA using mipmap levels (#31544)

* WebGPU: Fix MSAA using mipmap levels

* Change comment to link to official specification
NoxDawnsong 8 月之前
父節點
當前提交
3dd226d4a2
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/renderers/webgpu/utils/WebGPUTextureUtils.js

+ 1 - 0
src/renderers/webgpu/utils/WebGPUTextureUtils.js

@@ -266,6 +266,7 @@ class WebGPUTextureUtils {
 
 			msaaTextureDescriptorGPU.label = msaaTextureDescriptorGPU.label + '-msaa';
 			msaaTextureDescriptorGPU.sampleCount = samples;
+			msaaTextureDescriptorGPU.mipLevelCount = 1; // See https://www.w3.org/TR/webgpu/#texture-creation
 
 			textureData.msaaTexture = backend.device.createTexture( msaaTextureDescriptorGPU );
 

粤ICP备19079148号