C# Class Duality.Resources.AbstractShader

Inheritance: Resource
Mostrar archivo Open project: BraveSirAndrew/duality Class Usage Examples

Private Properties

Property Type Description
ExtractPlatformShader string

Public Methods

Method 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.

Protected Methods

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

Private Methods

Method Description
ExtractPlatformShader ( string allVersions, string platform ) : string

Method Details

AbstractShader() protected method

protected AbstractShader ( ) : System
return System

AbstractShader() protected method

protected AbstractShader ( string sourceCode ) : System
sourceCode string
return System

Compile() public method

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

LoadSource() public method

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.
return void

LoadSource() public method

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.
return void

OnCopyTo() protected method

protected OnCopyTo ( Resource r, Duality provider ) : void
r Resource
provider Duality
return void

OnDisposing() protected method

protected OnDisposing ( bool manually ) : void
manually bool
return void

OnLoaded() protected method

protected OnLoaded ( ) : void
return void

SaveSource() public method

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.
return void