Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Compile a single entry point to the target shader model. IDxcCompiler::Compile is deprecated; use IDxcCompiler3::Compile instead.
Syntax
HRESULT Compile(
IDxcBlob *pSource,
LPCWSTR pSourceName,
LPCWSTR pEntryPoint,
LPCWSTR pTargetProfile,
LPCWSTR *pArguments,
UINT32 argCount,
const DxcDefine *pDefines,
UINT32 defineCount,
IDxcIncludeHandler *pIncludeHandler,
IDxcOperationResult **ppResult
);
Parameters
pSource
The source text to compile.
pSourceName
An optional file name for pSource. Used in errors and include handlers.
pEntryPoint
Entry point name.
pTargetProfile
Shader profile to compile.
pArguments
An array of pointers to arguments.
argCount
The number of arguments.
pDefines
An array of defines.
defineCount
The number of defines.
pIncludeHandler
An optional user-provided interface to handle #include
directives.
ppResult
The compiler output status, buffer, and errors.
Requirements
Requirement | Value |
---|---|
Header | dxcapi.h |