C++ preprocessor using D3DPreprocess method from d3dcompiler API.
More...
|
interface | IBlob |
|
class | IncludeShadow |
| Shadow callback for IncludeHandler.
|
|
|
static string | Run (string shaderSource, string sourceFileName, ShaderMacro[] defines=null, params string[] includeDirectories) |
| Preprocesses the provided shader or effect source. More...
|
|
static string | Run (string shaderSource, string sourceFileName=null, ShaderMacro[] defines=null, IncludeHandler include=null) |
| Preprocesses the provided shader or effect source. More...
|
|
C++ preprocessor using D3DPreprocess method from d3dcompiler API.
Definition at line 17 of file PreProcessor.cs.
static string SiliconStudio.Shaders.PreProcessor.Run |
( |
string |
shaderSource, |
|
|
string |
sourceFileName, |
|
|
ShaderMacro[] |
defines = null , |
|
|
params string[] |
includeDirectories |
|
) |
| |
|
static |
Preprocesses the provided shader or effect source.
- Parameters
-
shaderSource | An array of bytes containing the raw source of the shader or effect to preprocess. |
sourceFileName | Name of the source file. |
defines | A set of macros to define during preprocessing. |
includeDirectories | The include directories used by the preprocessor. |
- Returns
- The preprocessed shader source.
Definition at line 44 of file PreProcessor.cs.
static string SiliconStudio.Shaders.PreProcessor.Run |
( |
string |
shaderSource, |
|
|
string |
sourceFileName = null , |
|
|
ShaderMacro[] |
defines = null , |
|
|
IncludeHandler |
include = null |
|
) |
| |
|
static |
Preprocesses the provided shader or effect source.
- Parameters
-
shaderSource | An array of bytes containing the raw source of the shader or effect to preprocess. |
sourceFileName | Name of the source file. |
defines | A set of macros to define during preprocessing. |
include | An interface for handling include files. |
- Returns
- The preprocessed shader source.
Definition at line 72 of file PreProcessor.cs.
The documentation for this class was generated from the following file:
- D:/Projects/Bitbucket Hosting/DoxygenFilesAndSources/Paradox v1.0.0 beta06/sources/common/shaders/SiliconStudio.Shaders/Parser/PreProcessor.cs