diff --git a/renderdoc/api/replay/renderdoc_replay.h b/renderdoc/api/replay/renderdoc_replay.h index ca92ee276..cb047d166 100644 --- a/renderdoc/api/replay/renderdoc_replay.h +++ b/renderdoc/api/replay/renderdoc_replay.h @@ -1065,7 +1065,7 @@ integer). :return: The nearest half-float equivalent stored as an int. :rtype: ``int`` )"); -extern "C" RENDERDOC_API uint16_t RENDERDOC_CC Maths_FloatToHalf(float f); +extern "C" RENDERDOC_API uint16_t RENDERDOC_CC Maths_FloatToHalf(float flt); DOCUMENT(R"(A utility function that returns the number of vertices in a primitive of a given topology. diff --git a/renderdoc/api/replay/replay_enums.h b/renderdoc/api/replay/replay_enums.h index 1667b564f..f95fb553a 100644 --- a/renderdoc/api/replay/replay_enums.h +++ b/renderdoc/api/replay/replay_enums.h @@ -1453,11 +1453,11 @@ DOCUMENT(R"(Return the number of control points in a patch list ``Topology`` :return: The number of control points in the specified topology :rtype: int )"); -constexpr inline uint32_t PatchList_Count(Topology t) +constexpr inline uint32_t PatchList_Count(Topology topology) { - return uint32_t(t) < uint32_t(Topology::PatchList_1CPs) + return uint32_t(topology) < uint32_t(Topology::PatchList_1CPs) ? 0 - : uint32_t(t) - uint32_t(Topology::PatchList_1CPs); + : uint32_t(topology) - uint32_t(Topology::PatchList_1CPs); } DOCUMENT(R"(A set of flags describing how this buffer may be used