Class SkslConvertOptions
public sealed class SkslConvertOptions
- Inheritance
-
SkslConvertOptions
- Inherited Members
Properties
AdditionalIncludePaths
Additional directories searched when resolving #include directives.
public IReadOnlyList<string> AdditionalIncludePaths { get; init; }
Property Value
IncludeResolver
Optional custom #include resolver (defaults to the file system).
public IIncludeResolver? IncludeResolver { get; init; }
Property Value
SourceName
The logical source name used in diagnostics. Defaults to "<memory>.fx".
public string SourceName { get; init; }
Property Value
TreatVaryingsAsUniforms
Interpolant semantics (e.g. "TEXCOORD1") the caller explicitly accepts becoming
uniforms named in_var_<SEMANTIC> — per-draw constants instead of
interpolated values. Off by default: the converter's answer to an unsupplyable
interpolant is a loud SD0611, because silently changing interpolation semantics is
exactly the wrong-output class this converter exists to prevent. Opting a semantic in is a
documented, warned-about semantic change.
COLOR0 (SpriteBatch's vertex color) is not governed by this option: it
always converts, by default, to the synthesized float4 uniform
ShadowDusk_Color (set it to the sprite's tint, white when untinted). Listing
"COLOR0" here is accepted and changes nothing, so callers written before that
default keep working, but they now get ShadowDusk_Color instead of
in_var_COLOR0.
public IReadOnlyList<string> TreatVaryingsAsUniforms { get; init; }