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
Switch convertUUID to char
  • Loading branch information
meladath committed Mar 20, 2022
commit 04fc623b6742f5ba5a6a30998d94264901f061c1
8 changes: 4 additions & 4 deletions src/dxvk/dxvk_device_filter.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#include "dxvk_device_filter.h"

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

Expand Down