diff --git a/.gitmodules b/.gitmodules index a3957cd..572cc7e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -19,3 +19,6 @@ [submodule "3rdparty/vma"] path = 3rdparty/vma url = https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git +[submodule "spirvreflect"] + path = 3rdparty/spirv-reflect + url = https://github.com/KhronosGroup/SPIRV-Reflect.git diff --git a/3rdparty/spirv-reflect b/3rdparty/spirv-reflect new file mode 160000 index 0000000..1aceb6a --- /dev/null +++ b/3rdparty/spirv-reflect @@ -0,0 +1 @@ +Subproject commit 1aceb6af56e74b92a00378842dda5c5a73f49a4b diff --git a/CMakeLists.txt b/CMakeLists.txt index 836a1a6..1672dc4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -161,6 +161,10 @@ list (APPEND EXTRA_LIBS "glslang") list (APPEND EXTRA_LIBS "SPIRV") endif() +# ---- SPIRV-Reflect ---- +include_directories(3rdparty/spirv-reflect) +add_sources(3rdparty/spirv-reflect/spirv_reflect.c) + # ---- OpenGL ---- if(ANDROID) list (APPEND EXTRA_LIBS "EGL")