Interface IShaderReflector
- Namespace
- ShadowDusk.Core.Reflection
- Assembly
- ShadowDusk.Core.dll
Derives a ReflectedEffect from a single compiled shader blob.
Unlike the native DXIL path (ID3D12ShaderReflection), an implementation
of this interface is expected to be pure-managed so it can run inside the .NET WASM
browser host (Phase 19), where no native reflection library is available.
No stage parameter is taken: the execution model (vertex / pixel / …) is recovered from the blob's own entry-point metadata.
public interface IShaderReflector
Methods
Reflect(ReadOnlyMemory<byte>)
Reflects a SPIR-V module into a ReflectedEffect.
Result<ReflectedEffect, ShaderError> Reflect(ReadOnlyMemory<byte> spirvBlob)
Parameters
spirvBlobReadOnlyMemory<byte>A complete SPIR-V module (little-endian word stream).