Table of Contents

Class ShaderFeatureSupport

Namespace
ShadowDusk.Core
Assembly
ShadowDusk.Core.dll

The single source of truth for which ShaderFeatures a shipping runtime is render-proven to consume, and the guard that enforces ShadowDusk's hard rule: never emit bytes no runtime can load. Requesting a feature with no downstream support is rejected loudly (SD0201) rather than silently compiled into unloadable output.

public static class ShaderFeatureSupport
Inheritance
ShaderFeatureSupport
Inherited Members

Remarks

Add a flag to RuntimeSupported ONLY when a runtime is rung-4 render-proven to consume it (and the GLSL rewriter is wired to lift the matching rejection). Until then every feature is rejected. As of 2026-06 KNI's GL backend is still MojoShader (SM2-3): no shipping runtime consumes vertex texture fetch, texture arrays, or un-down-converted modern GLSL, so RuntimeSupported is None.

Properties

RuntimeSupported

The features at least one shipping runtime is render-proven to consume. Today: none, so any requested feature is rejected by Validate(ShaderFeatures).

public static ShaderFeatures RuntimeSupported { get; }

Property Value

ShaderFeatures

Methods

Validate(ShaderFeatures)

Returns a loud ShaderError (SD0201) if requested includes any feature no shipping runtime supports; otherwise null. This is the "don't allow a feature with no downstream consumer" guard.

public static ShaderError? Validate(ShaderFeatures requested)

Parameters

requested ShaderFeatures

Returns

ShaderError