summaryrefslogtreecommitdiffstats
path: root/Graphics
diff options
context:
space:
mode:
authorazhirnov <zh1dron@gmail.com>2020-09-08 21:40:07 +0000
committerazhirnov <zh1dron@gmail.com>2020-09-08 21:40:07 +0000
commit7fd927902f00a72909f3c124cbd194c9ffc130c9 (patch)
tree5574f427e0f3355fc6b4264820e891eb10b0fce5 /Graphics
parentMerge branch 'master' into mesh_shader (diff)
downloadDiligentCore-7fd927902f00a72909f3c124cbd194c9ffc130c9.tar.gz
DiligentCore-7fd927902f00a72909f3c124cbd194c9ffc130c9.zip
fixed cmake, removed unused code
Diffstat (limited to 'Graphics')
-rw-r--r--Graphics/GLSLTools/src/SPIRVUtils.cpp12
-rw-r--r--Graphics/GraphicsEngineVulkan/CMakeLists.txt2
2 files changed, 2 insertions, 12 deletions
diff --git a/Graphics/GLSLTools/src/SPIRVUtils.cpp b/Graphics/GLSLTools/src/SPIRVUtils.cpp
index f550e88e..5ae9d3a1 100644
--- a/Graphics/GLSLTools/src/SPIRVUtils.cpp
+++ b/Graphics/GLSLTools/src/SPIRVUtils.cpp
@@ -44,18 +44,6 @@
#include "spirv-tools/optimizer.hpp"
-// SPIRV-Tools source
-#ifdef _MSC_VER
-# pragma warning(push, 0)
-#endif
-#include "source/opt/ir_context.h"
-#include "source/opt/module.h"
-#include "source/opt/pass.h"
-#include "source/opt/instruction.h"
-#ifdef _MSC_VER
-# pragma warning(pop)
-#endif
-
// clang-format off
static const char g_HLSLDefinitions[] =
{
diff --git a/Graphics/GraphicsEngineVulkan/CMakeLists.txt b/Graphics/GraphicsEngineVulkan/CMakeLists.txt
index 40a0f219..497a4e0b 100644
--- a/Graphics/GraphicsEngineVulkan/CMakeLists.txt
+++ b/Graphics/GraphicsEngineVulkan/CMakeLists.txt
@@ -228,6 +228,8 @@ endif()
if(EXISTS ${DXC_SPIRV_PATH})
set(DILIGENT_DXCOMPILER_FOR_SPIRV_PATH "${DXC_SPIRV_PATH}" CACHE INTERNAL "" FORCE)
message(STATUS "Found DXCompiler for Vulkan")
+else()
+ set(DILIGENT_DXCOMPILER_FOR_SPIRV_PATH "" CACHE INTERNAL "" FORCE)
endif()
if(PLATFORM_WIN32)