From 6b91d7ca2da1581712f8fd67f2bebb13a413decb Mon Sep 17 00:00:00 2001 From: bridgewaterrobbie Date: Tue, 10 Jun 2025 16:54:28 -0400 Subject: [PATCH] Reduce the number of prepared mipmap pipelines- this should be configurable really if we want to preserve this logic in the long run. --- filament/backend/src/webgpu/SpdMipmapGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filament/backend/src/webgpu/SpdMipmapGenerator.cpp b/filament/backend/src/webgpu/SpdMipmapGenerator.cpp index c2814d3f55..845ac1e2c9 100644 --- a/filament/backend/src/webgpu/SpdMipmapGenerator.cpp +++ b/filament/backend/src/webgpu/SpdMipmapGenerator.cpp @@ -78,7 +78,7 @@ namespace spd { void MipmapGenerator::PreparePipelines(wgpu::TextureFormat format, SPDFilter filter, bool halfPrecision) { SPDScalarType scalarType = SanitizeScalarType(format, halfPrecision); // Prepare for a reasonable number of mips - for (uint32_t i = 1; i <= 12; ++i) { + for (uint32_t i = 1; i <= 4; ++i) { GetOrCreatePipeline(format, filter, i, scalarType); } }