Table of Contents

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

Name string

The macro name.

Value string

The macro body; defaults to 1.

Properties

Name

The macro name.

public string Name { get; init; }

Property Value

string

Value

The macro body; defaults to 1.

public string Value { get; init; }

Property Value

string