summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D12
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-08-13 01:30:21 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-08-13 01:30:21 +0000
commitf4736b96f10542c72eaaa2c0755ee39f3e8909f4 (patch)
tree648e8d8c2859922902744d0fa6c7a73022543a3a /Graphics/GraphicsEngineD3D12
parentBash function for format validation in submodules (#155) (diff)
downloadDiligentCore-f4736b96f10542c72eaaa2c0755ee39f3e8909f4.tar.gz
DiligentCore-f4736b96f10542c72eaaa2c0755ee39f3e8909f4.zip
Fixed Visual Studio 16.7 build error
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
-rw-r--r--Graphics/GraphicsEngineD3D12/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineD3D12/CMakeLists.txt b/Graphics/GraphicsEngineD3D12/CMakeLists.txt
index 6ea2fc22..0c878103 100644
--- a/Graphics/GraphicsEngineD3D12/CMakeLists.txt
+++ b/Graphics/GraphicsEngineD3D12/CMakeLists.txt
@@ -106,12 +106,15 @@ set(SHADERS
shaders/GenerateMips/GenerateMipsLinearOddYCS.hlsl
)
+set(COMPILED_SHADERS_DIR ${CMAKE_CURRENT_BINARY_DIR}/CompiledShaders/GenerateMips)
+file(MAKE_DIRECTORY "${COMPILED_SHADERS_DIR}")
+
set_source_files_properties(${SHADERS} PROPERTIES
VS_SHADER_TYPE Compute
VS_SHADER_ENTRYPOINT main
VS_SHADER_MODEL 5.0
VS_SHADER_VARIABLE_NAME "g_p%(Filename)"
- VS_SHADER_OUTPUT_HEADER_FILE "${CMAKE_CURRENT_BINARY_DIR}/CompiledShaders/GenerateMips/%(Filename).h"
+ VS_SHADER_OUTPUT_HEADER_FILE "${COMPILED_SHADERS_DIR}/%(Filename).h"
#VS_SHADER_FLAGS "/O3"
)