resources: support multi_compile_local shader keywords
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user