Method FindShader
FindShader(string, ICodeLogger)
Tries to load a shader and covers error handling.
Declaration
protected static Shader FindShader(string shaderName, ICodeLogger logger)
Parameters
Type | Name | Description |
---|---|---|
string | shaderName | The requested shader's name. |
ICodeLogger | logger | Logger used for reporting errors. |
Returns
Type | Description |
---|---|
Shader | Requested shader or null if it couldn't be loaded. |