Skip to content

Commit

Permalink
Updated Vulkan-Headers and RTXMU.
Browse files Browse the repository at this point in the history
  • Loading branch information
apanteleev committed Nov 27, 2024
1 parent 041518a commit edfa604
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ endif()
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

if (NVRHI_WITH_VULKAN AND NOT TARGET Vulkan-Headers AND NOT TARGET Vulkan::Headers)
# Don't need the cpp module, disable it.
# TODO: Remove this after updating Vulkan-Headers to v1.3.301 or later, which have this option OFF by default.
option(VULKAN_HEADERS_ENABLE_MODULE "" OFF)

add_subdirectory(thirdparty/Vulkan-Headers)
endif()

Expand Down
6 changes: 5 additions & 1 deletion src/vulkan/vulkan-device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ namespace nvrhi::vulkan
DeviceHandle createDevice(const DeviceDesc& desc)
{
#if defined(NVRHI_SHARED_LIBRARY_BUILD)
const vk::DynamicLoader dl;
#if VK_HEADER_VERSION >= 301
vk::detail::DynamicLoader dl;
#else
vk::DynamicLoader dl;
#endif
const PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr = // NOLINT(misc-misplaced-const)
dl.getProcAddress<PFN_vkGetInstanceProcAddr>("vkGetInstanceProcAddr");
VULKAN_HPP_DEFAULT_DISPATCHER.init(desc.instance, vkGetInstanceProcAddr, desc.device);
Expand Down

0 comments on commit edfa604

Please sign in to comment.