Struct CompilationResult
This struct represent the result of a compilation process in a shader.
Inherited Members
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public struct CompilationResult
Constructors
CompilationResult(byte[], bool, uint, string)
Initializes a new instance of the CompilationResult struct.
Declaration
public CompilationResult(byte[] bytecode, bool hasErrors, uint errorLine = 0, string message = null)
Parameters
Type | Name | Description |
---|---|---|
byte[] | bytecode | The compile byte code. |
bool | hasErrors | Whether the compilation was success or not. |
uint | errorLine | The error line number if hasError is true. |
string | message | The error message if hasErrors is true. |
Fields
ByteCode
The byte code before compile a shader.
Declaration
public readonly byte[] ByteCode
Field Value
Type | Description |
---|---|
byte[] |
ErrorLine
The error line number.
Declaration
public readonly uint ErrorLine
Field Value
Type | Description |
---|---|
uint |
HasErrors
True if the compilation was wrong.
Declaration
public readonly bool HasErrors
Field Value
Type | Description |
---|---|
bool |
Message
Error message if hasErrors is true.
Declaration
public readonly string Message
Field Value
Type | Description |
---|---|
string |