Class CtabTable
- Namespace
- ShadowDusk.Core.Reflection
- Assembly
- ShadowDusk.Core.dll
A parsed D3D9 CTAB constant table — the SM1–3 analog of DXIL/SPIR-V reflection. It is what MojoShader itself uses at load time to bind effect parameters to shader registers, which makes it the faithful reflection source for the FNA fx_2_0 path.
public sealed record CtabTable : IEquatable<CtabTable>
- Inheritance
-
CtabTable
- Implements
- Inherited Members
Constructors
CtabTable(uint, string, string, IReadOnlyList<CtabConstant>)
A parsed D3D9 CTAB constant table — the SM1–3 analog of DXIL/SPIR-V reflection. It is what MojoShader itself uses at load time to bind effect parameters to shader registers, which makes it the faithful reflection source for the FNA fx_2_0 path.
public CtabTable(uint VersionToken, string Creator, string TargetProfile, IReadOnlyList<CtabConstant> Constants)
Parameters
VersionTokenuintThe shader's version token (e.g.
0xFFFF0300for ps_3_0), echoed inside the CTAB header.CreatorstringThe compiler's creator string.
TargetProfilestringThe target profile string (e.g.
"ps_2_0").ConstantsIReadOnlyList<CtabConstant>The constants, in CTAB order.
Properties
Constants
The constants, in CTAB order.
public IReadOnlyList<CtabConstant> Constants { get; init; }
Property Value
Creator
The compiler's creator string.
public string Creator { get; init; }
Property Value
TargetProfile
The target profile string (e.g. "ps_2_0").
public string TargetProfile { get; init; }
Property Value
VersionToken
The shader's version token (e.g. 0xFFFF0300 for ps_3_0),
echoed inside the CTAB header.
public uint VersionToken { get; init; }