Function gpa::shader_utilities::EnumerateDirectXCompilerFlags

Function Documentation

void gpa::shader_utilities::EnumerateDirectXCompilerFlags(const std::function<void(unsigned int flagEnumMask, const std::wstring &flagEnumString, const std::wstring &commandLineArg)> &fn)

Allows for a function/lambda to be applied to the various D3DCompiler flags.

Parameters

fn -- a function that performs some operation per flag @detail fn will be invoked as fn(D3DCOMPILE_DEBUG, L"D3DCOMPILE_DEBUG", L"/Zi"); on each flag