Add UUIDs to counter descriptors to allow uniquely identifiying them.

For built-in types, use a hard-coded GUID and just modify the last 32-bits; for the AMD counters, we just hash the description/name for now.
This commit is contained in:
Matthäus G. Chajdas
2017-08-24 13:21:05 +01:00
committed by baldurk
parent 72ef43b969
commit cb84ff695e
7 changed files with 43 additions and 2 deletions
+5
View File
@@ -77,6 +77,11 @@ vector<GPUCounter> VulkanReplay::EnumerateCounters()
void VulkanReplay::DescribeCounter(GPUCounter counterID, CounterDescription &desc)
{
desc.counterID = counterID;
// 6839CB5B-FBD2-4550-B606-8C65157C684C
desc.uuid.bytes[0] = 0x6839CB5B;
desc.uuid.bytes[1] = 0xFBD24550;
desc.uuid.bytes[2] = 0xB6068C65;
desc.uuid.bytes[3] = 0x157C684C ^ (uint32_t)counterID;
switch(counterID)
{