mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-11 01:01:05 +00:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user