Skip to content

Commit

Permalink
WebGPUBackend: generateMipmaps in layers (mrdoob#29151)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag authored Aug 16, 2024
1 parent e652a07 commit 4046207
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/renderers/webgpu/utils/WebGPUTextureUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,13 @@ class WebGPUTextureUtils {

} else {

this._generateMipmaps( textureData.texture, textureData.textureDescriptorGPU );
const depth = texture.image.depth || 1;

for ( let i = 0; i < depth; i ++ ) {

this._generateMipmaps( textureData.texture, textureData.textureDescriptorGPU, i );

}

}

Expand Down

0 comments on commit 4046207

Please sign in to comment.