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