resources: support multi_compile_local shader keywords

This commit is contained in:
2026-04-06 20:38:32 +08:00
parent c318f34f07
commit eea38d57d1
3 changed files with 78 additions and 5 deletions

View File

@@ -13,7 +13,8 @@ namespace Resources {
enum class ShaderKeywordDeclarationType : Core::uint8 {
MultiCompile = 0,
ShaderFeature,
ShaderFeatureLocal
ShaderFeatureLocal,
MultiCompileLocal = 3
};
struct ShaderKeywordDeclaration {
@@ -21,7 +22,8 @@ struct ShaderKeywordDeclaration {
Containers::Array<Containers::String> options;
bool IsLocal() const {
return type == ShaderKeywordDeclarationType::ShaderFeatureLocal;
return type == ShaderKeywordDeclarationType::ShaderFeatureLocal ||
type == ShaderKeywordDeclarationType::MultiCompileLocal;
}
};