Table of Contents

Class ShaderProgramFile

Namespace
ReFuel.IO
Assembly
ReFuel.Common.dll
[JsonSerializable(typeof(ShaderProgramFile))]
[JsonConverter(typeof(ShaderProgramFileJsonConverter))]
public class ShaderProgramFile : IGLShader, IEnumerable<KeyValuePair<GLShaderStages, string>>, IEnumerable
Inheritance
ShaderProgramFile
Implements
Inherited Members

Properties

Compute

public string? Compute { get; set; }

Property Value

string

Fragment

public string? Fragment { get; set; }

Property Value

string

Geometry

public string? Geometry { get; set; }

Property Value

string

Info

public ShaderProgramInfoFile Info { get; set; }

Property Value

ShaderProgramInfoFile

IsCompute

public bool IsCompute { get; }

Property Value

bool

Stages

public GLShaderStages Stages { get; }

Property Value

GLShaderStages

TesselationControl

public string? TesselationControl { get; set; }

Property Value

string

TesselationEvaluation

public string? TesselationEvaluation { get; set; }

Property Value

string

Vertex

public string? Vertex { get; set; }

Property Value

string

Methods

Deserialize(Stream, bool)

public static ShaderProgramFile Deserialize(Stream stream, bool decompress = true)

Parameters

stream Stream
decompress bool

Returns

ShaderProgramFile

Serialize(Stream, bool)

public void Serialize(Stream stream, bool compress = true)

Parameters

stream Stream
compress bool