Class DxcCompileOptions
- Namespace
- ShadowDusk.HLSL.Dxc
- Assembly
- ShadowDusk.HLSL.dll
Fine-grained tuning for a DxcCompileRequest: whether to tolerate compiler warnings rather than fail, and whether to embed debug information in the emitted module.
public sealed class DxcCompileOptions
- Inheritance
-
DxcCompileOptions
- Inherited Members
Properties
AllowWarnings
When true, warnings do not fail the compile.
public bool AllowWarnings { get; init; }
Property Value
EmbedDebugInfo
When true, debug information is embedded in the output module.
public bool EmbedDebugInfo { get; init; }
Property Value
SkipValidation
When true, passes DXC's -Vd flag to skip DXIL container
validation. Only ever set for the OpenGL path's reflection-only companion DXIL
compile (never for shipped bytecode): that compile's bytes are discarded (only its
structure is walked for reflection), so skipping the validator there cannot ship an
invalid module. It exists because DXC's validator is version-sensitive between
dxcompiler.dll and dxil.dll — a hosted CI runner's own preinstalled
Windows SDK can put a mismatched dxil.dll ahead of the one this library is
pinned to on the native search path, which fails validation with a "DXIL container
mismatch" error even though the module itself compiled correctly.
public bool SkipValidation { get; init; }