Add SPIR-V compression with LZ4 of Vulkan shaders (35% avg smaller)

This commit is contained in:
Wojtek Figat
2026-03-07 23:24:40 +01:00
parent 3038c56af4
commit c4342b0a20
4 changed files with 44 additions and 7 deletions

View File

@@ -105,7 +105,6 @@ bool ShaderCompilerWebGPU::Write(ShaderCompilationContext* context, ShaderFuncti
return WriteShaderFunctionPermutation(_context, meta, permutationIndex, bindings, &header, sizeof(header), wgslCompressed.Get(), wgslCompressed.Count());
}
header.Type = SpirvShaderHeader::Types::WGSL;
return WriteShaderFunctionPermutation(_context, meta, permutationIndex, bindings, &header, sizeof(header), wgsl.Get(), wgsl.Length() + 1);
}