Table of Contents

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

VersionToken uint

The shader's version token (e.g. 0xFFFF0300 for ps_3_0), echoed inside the CTAB header.

Creator string

The compiler's creator string.

TargetProfile string

The target profile string (e.g. "ps_2_0").

Constants IReadOnlyList<CtabConstant>

The constants, in CTAB order.

Properties

Constants

The constants, in CTAB order.

public IReadOnlyList<CtabConstant> Constants { get; init; }

Property Value

IReadOnlyList<CtabConstant>

Creator

The compiler's creator string.

public string Creator { get; init; }

Property Value

string

TargetProfile

The target profile string (e.g. "ps_2_0").

public string TargetProfile { get; init; }

Property Value

string

VersionToken

The shader's version token (e.g. 0xFFFF0300 for ps_3_0), echoed inside the CTAB header.

public uint VersionToken { get; init; }

Property Value

uint