Table of Contents

Class MonoGameGlslRewriteException

Namespace
ShadowDusk.GLSL
Assembly
ShadowDusk.GLSL.dll

Thrown by Rewrite(string, ShaderStage) when the SPIRV-Cross GLSL contains a construct the MojoShader-dialect rewrite cannot lower to a form that is valid across every MonoGame/KNI GL profile (desktop GL, KNI Reach/WebGL1, and KNI HiDef/WebGL2). Failing loudly here — rather than emitting GLSL that silently breaks under one profile — upholds the Phase 33 generality bar: any shader that compiles for GL must work in HiDef, or the compile must fail at build time.

public sealed class MonoGameGlslRewriteException : Exception, ISerializable
Inheritance
MonoGameGlslRewriteException
Implements
Inherited Members

Constructors

MonoGameGlslRewriteException(string)

Creates the exception with a message describing the unsupported construct.

public MonoGameGlslRewriteException(string message)

Parameters

message string

The diagnostic message.