IDxcUtils::BuildArguments function (dxcapi.h)
Build arguments that can be passed to the Compile method.
Syntax
HRESULT BuildArguments(
LPCWSTR pSourceName,
LPCWSTR pEntryPoint,
LPCWSTR pTargetProfile,
LPCWSTR *pArguments,
UINT32 argCount,
const DxcDefine *pDefines,
UINT32 defineCount,
IDxcCompilerArgs **ppArgs
);
Parameters
pSourceName
An optional file name. Used in errors and include handlers.
pEntryPoint
Entry point name (-E
).
pTargetProfile
Shader profile to compile (-T
).
pArguments
An array of pointers to arguments.
argCount
The number of arguments.
pDefines
An array of defines.
defineCount
The number of defines.
ppArgs
Arguments that you can use with the IDxcCompiler3::Compile method.
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