Table of Contents

Class ReflectedEffect

Namespace
ShadowDusk.Core.Reflection
Assembly
ShadowDusk.Core.dll

The complete reflected metadata for one compiled shader: its constant buffers, texture and sampler bindings, input/output signatures, and flattened effect parameters. Produced by IShaderReflector and consumed when writing the .mgfx container.

public sealed record ReflectedEffect : IEquatable<ReflectedEffect>
Inheritance
ReflectedEffect
Implements
Inherited Members

Properties

ConstantBuffers

The constant (uniform) buffers declared by the shader.

public required IReadOnlyList<ConstantBufferReflection> ConstantBuffers { get; init; }

Property Value

IReadOnlyList<ConstantBufferReflection>

InputSignature

The shader's input signature (stage input attributes).

public required IReadOnlyList<SignatureParameterReflection> InputSignature { get; init; }

Property Value

IReadOnlyList<SignatureParameterReflection>

OutputSignature

The shader's output signature (stage output attributes).

public required IReadOnlyList<SignatureParameterReflection> OutputSignature { get; init; }

Property Value

IReadOnlyList<SignatureParameterReflection>

Parameters

The flattened effect parameters exposed to the MonoGame runtime.

public required IReadOnlyList<ParameterReflection> Parameters { get; init; }

Property Value

IReadOnlyList<ParameterReflection>

Samplers

The samplers bound by the shader.

public required IReadOnlyList<SamplerReflection> Samplers { get; init; }

Property Value

IReadOnlyList<SamplerReflection>

Textures

The texture resources bound by the shader.

public required IReadOnlyList<TextureReflection> Textures { get; init; }

Property Value

IReadOnlyList<TextureReflection>