Class UserDefine
- Namespace
- ShadowDusk.Core.Preprocessor
- Assembly
- ShadowDusk.Core.dll
A user-supplied preprocessor macro — the library-level equivalent of mgfxc's
/Defines: CLI flag, injected after the platform macros. Unlike
MacroDefinition the value is free-form text, matching what fxc and
mgfxc accept (NAME=text; a bare NAME defines 1).
public sealed record UserDefine : IEquatable<UserDefine>
- Inheritance
-
UserDefine
- Implements
- Inherited Members
Constructors
UserDefine(string, string)
A user-supplied preprocessor macro — the library-level equivalent of mgfxc's
/Defines: CLI flag, injected after the platform macros. Unlike
MacroDefinition the value is free-form text, matching what fxc and
mgfxc accept (NAME=text; a bare NAME defines 1).
public UserDefine(string Name, string Value = "1")
Parameters
Properties
Name
The macro name.
public string Name { get; init; }
Property Value
Value
The macro body; defaults to 1.
public string Value { get; init; }