Class ShaderCompilerException
This exception occurs when a shader compiled at runtime has errors. It should provide enough information to help diagnose the bug.
[DataContract]
public sealed class ShaderCompilerException : Exception, ISerializable
- Inheritance
-
ShaderCompilerException
- Implements
- Inherited Members
Constructors
ShaderCompilerException(string, string, ShaderStage, string, string)
Constructor.
public ShaderCompilerException(string sourceFile, string entrypoint, ShaderStage stage, string errors, string sourceCode)
Parameters
sourceFile
stringThe relative shader source file.
entrypoint
stringThe shader entrypoint function.
stage
ShaderStageThe shader stage.
errors
stringThe error logging from the shader compiler.
sourceCode
stringThe source code that was being compiled.
Properties
Entrypoint
The shader entrypoint function.
public string Entrypoint { get; }
Property Value
Errors
The error logging from the shader compiler.
public string Errors { get; }
Property Value
SourceCode
The source code being compiled.
public string SourceCode { get; }
Property Value
SourceFile
The relative shader source file.
public string SourceFile { get; }
Property Value
Stage
The shader stage.
public ShaderStage Stage { get; }
Property Value
Methods
ToString()
Creates and returns a string representation of the current exception.
public override string ToString()
Returns
- string
A string representation of the current exception.