C# Class Duality.Resources.AbstractShader

Inheritance: Resource
Afficher le fichier Open project: BraveSirAndrew/duality Class Usage Examples

Private Properties

Свойство Type Description
ExtractPlatformShader string

Méthodes publiques

Méthode Description
Compile ( ) : void

Compiles the shader. This is done automatically when loading the shader or attaching it to a Duality.Resources.ShaderProgram.

LoadSource ( Stream stream ) : void

Loads new shader source code from the specified System.IO.Stream.

LoadSource ( string filePath = null ) : void

Loads new shader source code from the specified file.

SaveSource ( string filePath = null ) : void

Saves the current shader source code to the specified file.

Méthodes protégées

Méthode Description
AbstractShader ( ) : System
AbstractShader ( string sourceCode ) : System
OnCopyTo ( Resource r, Duality provider ) : void
OnDisposing ( bool manually ) : void
OnLoaded ( ) : void

Private Methods

Méthode Description
ExtractPlatformShader ( string allVersions, string platform ) : string

Method Details

AbstractShader() protected méthode

protected AbstractShader ( ) : System
Résultat System

AbstractShader() protected méthode

protected AbstractShader ( string sourceCode ) : System
sourceCode string
Résultat System

Compile() public méthode

Compiles the shader. This is done automatically when loading the shader or attaching it to a Duality.Resources.ShaderProgram.
public Compile ( ) : void
Résultat void

LoadSource() public méthode

Loads new shader source code from the specified System.IO.Stream.
public LoadSource ( Stream stream ) : void
stream Stream The to read the source code from.
Résultat void

LoadSource() public méthode

Loads new shader source code from the specified file.
public LoadSource ( string filePath = null ) : void
filePath string The path of the file to read the source code from.
Résultat void

OnCopyTo() protected méthode

protected OnCopyTo ( Resource r, Duality provider ) : void
r Resource
provider Duality
Résultat void

OnDisposing() protected méthode

protected OnDisposing ( bool manually ) : void
manually bool
Résultat void

OnLoaded() protected méthode

protected OnLoaded ( ) : void
Résultat void

SaveSource() public méthode

Saves the current shader source code to the specified file.
public SaveSource ( string filePath = null ) : void
filePath string The path of the file to write the source code to.
Résultat void