Table of Contents

Struct CompilerResult

Namespace
Pie.ShaderCompiler
Assembly
Pie.ShaderCompiler.dll

The result of a shader compilation.

public struct CompilerResult
Inherited Members

Constructors

CompilerResult(byte[], bool, string)

Create a new CompilerResult.

public CompilerResult(byte[] result, bool isSuccess, string error)

Parameters

result byte[]

The result, if any. This should be null if isSuccess is false.

isSuccess bool

Whether or not the result was a success.

error string

An error string, if any. This should be null or empty if isSuccess is true.

Fields

Error

An error string, if any.

public readonly string Error

Field Value

string
The result of a shader compilation.

Remarks

Will be null or empty if IsSuccess is true.

IsSuccess

Whether or not the result was a success.

public readonly bool IsSuccess

Field Value

bool
The result of a shader compilation.

Result

The result, if any.

public readonly byte[] Result

Field Value

byte[]
The result of a shader compilation.

Remarks

Will be null if IsSuccess is false.