Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deviceUUID filter with DXVK_FILTER_DEVICE_UUID #2408

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Simpler convert
  • Loading branch information
meladath committed Mar 20, 2022
commit 51aad4e2b59e366c9a36ac9c7e63d9cfc37564c3
14 changes: 8 additions & 6 deletions src/dxvk/dxvk_device_filter.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#include "dxvk_device_filter.h"

std::string convertUUID(const uint8_t* uuid) {
meladath marked this conversation as resolved.
Show resolved Hide resolved
std::ostringstream stream;
for (unsigned int i = 0; i < VK_UUID_SIZE; i++) {
stream << static_cast<char>(uuid[i]);
}
std::string key_string = stream.str();
return key_string;
std::string uuidStr{VK_UUID_SIZE};

for(unsigned int i = 0; i < VK_UUID_SIZE; i++)
{
uuidStr[i] = uuid[i];
}

return uuidStr;
}

namespace dxvk {
Expand Down