Struct CompilationResult
This struct represents the result of a compilation process in a shader.
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 compiled byte code. |
| bool | hasErrors | Indicates whether the compilation was successful or not. |
| uint | errorLine | The error line number if hasErrors is true. |
| string | message | The error message if hasErrors is true. |
Fields
ByteCode
The byte code before compiling a shader.
Declaration
public readonly byte[] ByteCode
Field Value
| Type | Description |
|---|---|
| byte[] |
ErrorLine
The line number of the error.
Declaration
public readonly uint ErrorLine
Field Value
| Type | Description |
|---|---|
| uint |
HasErrors
True if the compilation was incorrect.
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 |