Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SiliconStudio.Shaders.PreProcessor Class Reference

C++ preprocessor using D3DPreprocess method from d3dcompiler API. More...

Classes

interface  IBlob
 
class  IncludeShadow
 Shadow callback for IncludeHandler.
 

Static Public Member Functions

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

Detailed Description

C++ preprocessor using D3DPreprocess method from d3dcompiler API.

Definition at line 17 of file PreProcessor.cs.

Member Function Documentation

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
shaderSourceAn array of bytes containing the raw source of the shader or effect to preprocess.
sourceFileNameName of the source file.
definesA set of macros to define during preprocessing.
includeDirectoriesThe 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
shaderSourceAn array of bytes containing the raw source of the shader or effect to preprocess.
sourceFileNameName of the source file.
definesA set of macros to define during preprocessing.
includeAn 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: