D3DX10CreateAsyncCompilerProcessor function
Create an asynchronous-data processor for a shader.
Syntax
HRESULT D3DX10CreateAsyncCompilerProcessor(
_In_ LPCSTR pFileName,
_In_ const D3D10_SHADER_MACRO *pDefines,
_In_ LPD3D10INCLUDE pInclude,
_In_ LPCSTR pFunctionName,
_In_ LPCSTR pProfile,
_In_ UINT Flags1,
_In_ UINT Flags2,
_Out_ ID3D10Blob **ppCompiledShader,
_Out_ ID3D10Blob **ppErrorBuffer,
_Out_ ID3DX10DataProcessor **ppDataProcessor
);
Parameters
-
pFileName [in]
-
Type: LPCSTR
A string that contains the shader filename.
-
pDefines [in]
-
Type: const D3D_SHADER_MACRO*
A NULL-terminated array of shader macros (see D3D_SHADER_MACRO); set this to NULL to specify no macros.
-
pInclude [in]
-
Type: LPD3D10INCLUDE
A pointer to an include interface (see ID3D10Include Interface). This parameter can be NULL.
-
pFunctionName [in]
-
Type: LPCSTR
Name of the shader-entry point function where shader execution begins. When you compile an effect, D3DX10CreateAsyncCompilerProcessor ignores pFunctionName; we recommend that you set pFunctionName to NULL because it is good programming practice to set a pointer parameter to NULL if the called function will not use it.
-
pProfile [in]
-
Type: LPCSTR
A string that specifies the shader profile or shader model.
-
Flags1 [in]
-
Type: UINT
-
Flags2 [in]
-
Type: UINT
Effect compile flags. When you compile a shader and not an effect file, D3DX10CreateAsyncCompilerProcessor ignores Flags2; we recommend that you set Flags2 to zero because it is good programming practice to set a pointer parameter to NULL if the called function will not use it.
-
ppCompiledShader [out]
-
Type: ID3D10Blob**
Address of a pointer to the compiled effect (see ID3D10Blob Interface).
-
ppErrorBuffer [out]
-
Type: ID3D10Blob**
Address of a pointer to compile errors (see ID3D10Blob Interface).
-
ppDataProcessor [out]
-
Type: ID3DX10DataProcessor**
Address of a pointer to a buffer that contains the data processor created (see ID3DX10DataProcessor Interface).
Return value
Type: HRESULT
The return value is one of the values listed in Direct3D 10 Return Codes.
Requirements
Requirement | Value |
---|---|
Header |
|
See also