From 958f73cfecec4e488c943b0139c2fc236529331c Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 4 Aug 2022 16:55:42 +0100 Subject: [PATCH] Treat GPU pointers as 8-byte unsigned integers for typing purposes --- renderdoc/api/replay/replay_enums.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/renderdoc/api/replay/replay_enums.h b/renderdoc/api/replay/replay_enums.h index 7fb06d835..879cbb40f 100644 --- a/renderdoc/api/replay/replay_enums.h +++ b/renderdoc/api/replay/replay_enums.h @@ -302,7 +302,7 @@ constexpr uint32_t VarTypeByteSize(VarType type) return (type == VarType::UByte || type == VarType::SByte) ? 1 : (type == VarType::Half || type == VarType::UShort || type == VarType::SShort) ? 2 : (type == VarType::Float || type == VarType::UInt || type == VarType::SInt || type == VarType::Bool || type == VarType::Enum) ? 4 - : (type == VarType::Double || type == VarType::ULong || type == VarType::SLong ) ? 8 + : (type == VarType::Double || type == VarType::ULong || type == VarType::SLong || type == VarType::GPUPointer) ? 8 : 0; // clang-format on } @@ -394,7 +394,8 @@ constexpr CompType VarTypeCompType(VarType type) return (type == VarType::Double || type == VarType::Float || type == VarType::Half) ? CompType::Float : (type == VarType::ULong || type == VarType::UInt || type == VarType::UShort || - type == VarType::UByte || type == VarType::Bool || type == VarType::Enum) ? CompType::UInt + type == VarType::UByte || type == VarType::Bool || type == VarType::Enum || + type == VarType::GPUPointer) ? CompType::UInt : (type == VarType::SLong || type == VarType::SInt || type == VarType::SShort || type == VarType::SByte) ? CompType::SInt