Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/renderers/webgpu/utils/WebGPUTextureUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Collaborator

@Mugen87 Mugen87 Aug 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sunag Should be report warning to the user if samples is set to a value greater than 0 and mipmapping is enabled? In engine components like FX modules, we can control this ourselves when creating render targets but I wonder if this kind of patch leads to unexpected behavior on user level.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm.. good question, I can't calculate it right away either, we can merge and test during the r180dev I think.


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

Expand Down