IDxcCompiler2::CompileWithDebug function (dxcapi.h)
Compile a single entry point to the target shader model with debug information. IDxcCompiler::CompileWithDebug is deprecated; use IDxcCompiler3::Compile instead.
Syntax
HRESULT CompileWithDebug(
IDxcBlob *pSource,
LPCWSTR pSourceName,
LPCWSTR pEntryPoint,
LPCWSTR pTargetProfile,
LPCWSTR *pArguments,
UINT32 argCount,
const DxcDefine *pDefines,
UINT32 defineCount,
IDxcIncludeHandler *pIncludeHandler,
IDxcOperationResult **ppResult,
LPWSTR *ppDebugBlobName,
IDxcBlob **ppDebugBlob
);
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.
ppDebugBlobName
A suggested file name for the debug blob. You must free this memory by using CoTaskMemFree.
ppDebugBlob
The debug blob.
Requirements
Requirement | Value |
---|---|
Header | dxcapi.h |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for