Tried rendering the sphere without success
All checks were successful
Gitea Actions Demo / Scan the project (push) Successful in 29s
All checks were successful
Gitea Actions Demo / Scan the project (push) Successful in 29s
This commit is contained in:
@ -11,17 +11,14 @@ namespace Nebulix.Rendering;
|
||||
[Serializable]
|
||||
public class ShaderCompileException : Exception
|
||||
{
|
||||
protected ShaderType _shaderType;
|
||||
protected ShaderType ShaderType;
|
||||
|
||||
public ShaderCompileException(ShaderType shaderType) : base("Unable to compile shader.") { _shaderType = shaderType; }
|
||||
public ShaderCompileException(ShaderType shaderType, string message) : base(message) { _shaderType = shaderType; }
|
||||
public ShaderCompileException(ShaderType shaderType, string message, Exception inner) : base(message, inner) { _shaderType = shaderType; }
|
||||
protected ShaderCompileException(
|
||||
System.Runtime.Serialization.SerializationInfo info,
|
||||
System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
|
||||
public ShaderCompileException(ShaderType shaderType) : base("Unable to compile shader.") { ShaderType = shaderType; }
|
||||
public ShaderCompileException(ShaderType shaderType, string message) : base(message) { ShaderType = shaderType; }
|
||||
public ShaderCompileException(ShaderType shaderType, string message, Exception inner) : base(message, inner) { ShaderType = shaderType; }
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"Type of Shader: '{_shaderType}'" + "\n" + Message;
|
||||
return $"Type of Shader: '{ShaderType}'" + "\n" + Message;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user