fixes #193 issue
This commit is contained in:
parent
9664ba9afe
commit
c8142ed880
3 changed files with 15 additions and 0 deletions
|
|
@ -729,7 +729,12 @@ extern py::object kp_debug, kp_info, kp_warning, kp_error;
|
|||
#include <iostream>
|
||||
#include <vector>
|
||||
|
||||
#if USE_EXTERNAL_SHADER
|
||||
#include <SPIRV/GlslangToSpv.h>
|
||||
#else
|
||||
#include <glslang/SPIRV/GlslangToSpv.h>
|
||||
#endif
|
||||
|
||||
#include <glslang/Include/ResourceLimits.h>
|
||||
#include <glslang/Public/ShaderLang.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -145,6 +145,11 @@ endif()
|
|||
#################### GLSLANG #######################
|
||||
#####################################################
|
||||
|
||||
# If glslag was cloned, then SPIRV/GlslangToSpv.h will be used instead of glslang/SPIRV/GlslangToSpv.h
|
||||
if(KOMPUTE_OPT_REPO_SUBMODULE_BUILD)
|
||||
set(USE_EXTERNAL_SHADER 1)
|
||||
endif()
|
||||
|
||||
if(NOT KOMPUTE_OPT_DISABLE_SHADER_UTILS)
|
||||
if(KOMPUTE_OPT_REPO_SUBMODULE_BUILD)
|
||||
add_subdirectory(${PROJECT_SOURCE_DIR}/external/glslang
|
||||
|
|
|
|||
|
|
@ -4,7 +4,12 @@
|
|||
#include <iostream>
|
||||
#include <vector>
|
||||
|
||||
#if USE_EXTERNAL_SHADER
|
||||
#include <SPIRV/GlslangToSpv.h>
|
||||
#else
|
||||
#include <glslang/SPIRV/GlslangToSpv.h>
|
||||
#endif
|
||||
|
||||
#include <glslang/Include/ResourceLimits.h>
|
||||
#include <glslang/Public/ShaderLang.h>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue