Skip to content

Commit 3dd226d

Browse files
authored
WebGPURenderer: Fix MSAA using mipmap levels (#31544)
* WebGPU: Fix MSAA using mipmap levels * Change comment to link to official specification
1 parent 64df03d commit 3dd226d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/renderers/webgpu/utils/WebGPUTextureUtils.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ class WebGPUTextureUtils {
266266

267267
msaaTextureDescriptorGPU.label = msaaTextureDescriptorGPU.label + '-msaa';
268268
msaaTextureDescriptorGPU.sampleCount = samples;
269+
msaaTextureDescriptorGPU.mipLevelCount = 1; // See https://www.w3.org/TR/webgpu/#texture-creation
269270

270271
textureData.msaaTexture = backend.device.createTexture( msaaTextureDescriptorGPU );
271272

0 commit comments

Comments
 (0)