Browse Source

WebGPURenderer: Fix MSAA using mipmap levels (#31544)

* WebGPU: Fix MSAA using mipmap levels

* Change comment to link to official specification
NoxDawnsong 5 months ago
parent
commit
3dd226d4a2
1 changed files with 1 additions and 0 deletions
  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号