Class BoolKeyword
A serialized bool that drives a single shader_feature keyword when true. Subclass and override Keyword to name the keyword - the identity is code, not serialized data, so it can never drift from a renamed shader keyword.
[Serializable]
public abstract class BoolKeyword : IShaderFeatureKeyword
- Inheritance
-
BoolKeyword
- Implements
- Derived
- Inherited Members
Properties
ActiveKeywords
The shader_feature keywords currently active, given this field's current value.
public IEnumerable<string> ActiveKeywords { get; }
Property Value
Keyword
The shader_feature keyword this drives.
public abstract string Keyword { get; }
Property Value
Value
The current bool value.
public bool Value { get; set; }
Property Value
Operators
implicit operator bool(BoolKeyword)
public static implicit operator bool(BoolKeyword boolKeyword)
Parameters
boolKeywordBoolKeyword