namespace Veldrid.SPIRV { /// /// Represents a single preprocessor macro used when compiling shader source code. /// public class MacroDefinition { /// /// The name of the macro. /// public string Name { get; set; } /// /// The macro's replacement value. May be null. /// public string Value { get; set; } /// /// Constructs a new with no value. /// /// The name of the macro. public MacroDefinition(string name) { Name = name; } /// /// Constructs a new with a value. /// /// The name of the macro. /// The macro's replacement value. May be null. public MacroDefinition(string name, string value) { Name = name; Value = value; } // For serialization internal MacroDefinition() { } } }