From 22b8d7a4d35a111c2872057c3b9c9bae06aeb464 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sun, 20 Feb 2022 21:37:09 +0100 Subject: [PATCH] [tests] Allow includes when compiling HLSL shaders --- tests/dxbc/test_hlsl_compiler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/dxbc/test_hlsl_compiler.cpp b/tests/dxbc/test_hlsl_compiler.cpp index b1670878..29707e3b 100644 --- a/tests/dxbc/test_hlsl_compiler.cpp +++ b/tests/dxbc/test_hlsl_compiler.cpp @@ -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 |