Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17063

IDxcUtils::CreateDefaultIncludeHandler

$
0
0

Does someone know whether it is possible to pass an “include directory” compiler argument (e.g., “-I directory”) to the DirectX Shader Compiler when the default include handler is used (i.e. IDxcUtils::CreateDefaultIncludeHandler)?

I have no problem passing such a compiler argument directly to dxc.exe, but when using the IDxcCompiler3 in code, I always fail on the first include. I already tried passing absolute and relative paths (with/without a terminating back slash, with/without quotes for the path) etc.

const wchar_t* arguments[] =
 {
  L"-I D:/Users/.../Engine",
  DXC_ARG_OPTIMIZATION_LEVEL3
 };

 


Viewing all articles
Browse latest Browse all 17063

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>