mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Make some parameter names more verbose
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user