Reduce the number of prepared mipmap pipelines- this should be configurable really if we want to preserve this logic in the long run.

This commit is contained in:
bridgewaterrobbie
2025-06-10 16:54:28 -04:00
parent df264372d9
commit 6b91d7ca2d

View File

@@ -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);
}
}