Skip to content

Commit

Permalink
[Vk] Let VulkanPhysicalDevice::physicalDeviceID be unsigned and hold …
Browse files Browse the repository at this point in the history
…deviceLUID if available
  • Loading branch information
eugenegff committed Nov 27, 2024
1 parent 84c07a0 commit 13e92dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RenderSystems/Vulkan/include/OgreVulkanRenderSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ namespace Ogre
struct VulkanPhysicalDevice
{
VkPhysicalDevice physicalDevice;
long long physicalDeviceID;
uint64 physicalDeviceID;
String title;
};

Expand Down
2 changes: 1 addition & 1 deletion RenderSystems/Vulkan/src/OgreVulkanDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ namespace Ogre
// TODO: use deviceLUID or deviceUUID if available
uint64 hashResult[2] = {};
OGRE_HASH128_FUNC( name.c_str(), (int)name.size(), IdString::Seed, hashResult );
long long deviceLUID = hashResult[0];
uint64 deviceLUID = hashResult[0] ^ hashResult[1];

LogManager::getSingleton().logMessage( "Vulkan: \"" + name + "\"" );
mVulkanPhysicalDevices.push_back( { device, deviceLUID, name } );
Expand Down

0 comments on commit 13e92dd

Please sign in to comment.