From d424fb87aa2ba343ff7b891234a1dd1f91e2fd97 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Fri, 21 Feb 2020 10:26:28 +0100 Subject: [PATCH] [tests] Enable d3dcompiler option for unbounded descriptor tables Makes compiling SM5.1 shaders for D3D12 a bit less painful. --- 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 fc447e438..2249c0c12 100644 --- a/tests/dxbc/test_hlsl_compiler.cpp +++ b/tests/dxbc/test_hlsl_compiler.cpp @@ -48,7 +48,8 @@ int WINAPI WinMain(HINSTANCE hInstance, "Shader", nullptr, nullptr, str::fromws(entryPoint).c_str(), str::fromws(target).c_str(), - D3DCOMPILE_OPTIMIZATION_LEVEL3, + D3DCOMPILE_OPTIMIZATION_LEVEL3 | + D3DCOMPILE_ENABLE_UNBOUNDED_DESCRIPTOR_TABLES, 0, &binary, &errors); if (FAILED(hr)) {