diff --git a/src/util/spirv_compiler.cpp b/src/util/spirv_compiler.cpp index 56e120685..1fa451267 100644 --- a/src/util/spirv_compiler.cpp +++ b/src/util/spirv_compiler.cpp @@ -176,6 +176,11 @@ std::optional SPIRVCompiler::CompileShader(GPUSh std::optional SPIRVCompiler::CompileSPIRVToMSL(std::span spv) { spirv_cross::CompilerMSL compiler(spv.data(), spv.size()); + + spirv_cross::CompilerMSL::Options options = compiler.get_msl_options(); + options.pad_fragment_output_components = true; + compiler.set_msl_options(options); + std::string msl = compiler.compile(); return (msl.empty()) ? std::optional() : std::optional(std::move(msl)); }