[tests] Allow includes when compiling HLSL shaders

This commit is contained in:
Philip Rebohle 2022-02-20 21:37:09 +01:00
parent 49e5357a87
commit 22b8d7a4d3
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,8 @@ int WINAPI WinMain(HINSTANCE hInstance,
HRESULT hr = D3DCompile(
hlslCode.data(),
hlslCode.size(),
"Shader", nullptr, nullptr,
"Shader", nullptr,
D3D_COMPILE_STANDARD_FILE_INCLUDE,
str::fromws(entryPoint).c_str(),
str::fromws(target).c_str(),
D3DCOMPILE_OPTIMIZATION_LEVEL3 |