Property | Type | Description | |
---|---|---|---|
ExtractPlatformShader | string |
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.
|
Method | Description | |
---|---|---|
AbstractShader ( ) : System | ||
AbstractShader ( string sourceCode ) : System | ||
OnCopyTo ( Resource r, Duality provider ) : void | ||
OnDisposing ( bool manually ) : void | ||
OnLoaded ( ) : void |
Method | Description | |
---|---|---|
ExtractPlatformShader ( string allVersions, string platform ) : string |
protected AbstractShader ( string sourceCode ) : System | ||
sourceCode | string | |
return | System |
public LoadSource ( Stream stream ) : void | ||
stream | Stream | The |
return | void |
public LoadSource ( string filePath = null ) : void | ||
filePath | string | The path of the file to read the source code from. |
return | void |
protected OnCopyTo ( Resource r, Duality provider ) : void | ||
r | Resource | |
provider | Duality | |
return | void |
protected OnDisposing ( bool manually ) : void | ||
manually | bool | |
return | void |
public SaveSource ( string filePath = null ) : void | ||
filePath | string | The path of the file to write the source code to. |
return | void |