Closed half-potato closed 1 month ago
The short answer is that it's not currently possible to toggle vulkan support.
Strange, it shouldn't even be looking at the system vulkan headers, and should be getting them from the external/vulkan
directory (and just to check, is the submodule up to date?)
Can you build with --verbose
please and we can see what compiler invocation is causing this?
For example on my machine:
g++ -DGFX_ENABLE_CUDA -DNOMINMAX -DSLANG_DYNAMIC -DSLANG_ENABLE_XLIB -DSLANG_GFX_DYNAMIC -DSLANG_GFX_DYNAMIC_EXPORT -DUNICODE -DVC_EXTRALEAN -DWIN32_LEAN_AND_MEAN -D_DEBUG -D_UNICODE -Dgfx_EXPORTS -DCMAKE_INTDIR=\"Debug\" -I/home/e/work/slang -I/home/e/work/slang/source -I/home/e/work/slang/external/vulkan/include -I/home/e/work/slang/external/metal-cpp -g -fPIC -fvisibility=hidden -Wall -Wno-switch -Wno-parentheses -Wno-unused-local-typedefs -Wno-class-memaccess -Wno-reorder -Wno-invalid-offsetof -Werror=return-local-addr -Wnarrowing -Wno-unused-variable -Wno-unused-parameter -Wno-sign-compare -Wno-unused-function -Wno-unused-value -Wno-unused-but-set-variable -Wno-implicit-fallthrough -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-maybe-uninitialized -MD -MT CMakeFiles/gfx.dir/Debug/tools/gfx/vulkan/vk-api.cpp.o -MF CMakeFiles/gfx.dir/Debug/tools/gfx/vulkan/vk-api.cpp.o.d -o CMakeFiles/gfx.dir/Debug/tools/gfx/vulkan/vk-api.cpp.o -c /home/e/work/slang/tools/gfx/vulkan/vk-api.cpp
has: -I/home/e/work/slang/external/vulkan/include
VkPhysicalDeviceRayTracingValidationFeaturesNV
was added in the latest(?) vulkan SDK, likely has todo with versioning of not using the latest vulkan SDK.
This is caused by out dated vulkan headers. Slang do not use the vulkan headers from system dir or from vulkan sdk installation dir, and will use it through a submodule. I would make sure the submodule is properly updated.
Closing for now. Please re-open if this is still an issue for you.
Computer 1:
Computer 2:
Not super interested in using SPIRV and Vulkan, can I disable the compilation for these files?