VideoBackends / VideoCommon: add support for specifying include files in shader code

This commit is contained in:
iwubcode committed 2025-10-26 22:47:23 -05:00
1 parent ba2acb872c
commit 96fe6a1575
40 files changed
+450 -113

No files matched your search

+2 -1
View File
@@ -54,7 +54,8 @@ static inline bool HasStencil(AbstractTextureFormat format)
return format == AbstractTextureFormat::D24_S8 || format == AbstractTextureFormat::D32F_S8;
}
std::optional<std::string> TranslateShaderToMSL(ShaderStage stage, std::string_view source);
std::optional<std::string> TranslateShaderToMSL(ShaderStage stage, std::string_view source,
VideoCommon::ShaderIncluder* shader_includer);
} // namespace Util
} // namespace Metal