Deprecate profiler categories based on global enum

(to be supplanted by registered budgets in the future)

Signed-off-by: Jeremy Ong <jcong@amazon.com>
This commit is contained in:
Jeremy Ong
2021-08-17 12:10:57 -06:00
parent d15d40fec6
commit df9b4d4a2f
274 changed files with 1435 additions and 1965 deletions
@@ -8,6 +8,8 @@
#include <System/TangentSpaceHelper.h>
#include <AzCore/Debug/Profiler.h>
namespace NvCloth
{
namespace
@@ -20,7 +22,7 @@ namespace NvCloth
const AZStd::vector<SimIndexType>& indices,
AZStd::vector<AZ::Vector3>& outNormals)
{
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::Cloth);
AZ_PROFILE_FUNCTION(Cloth);
if ((indices.size() % 3) != 0)
{
@@ -86,7 +88,7 @@ namespace NvCloth
AZStd::vector<AZ::Vector3>& outTangents,
AZStd::vector<AZ::Vector3>& outBitangents)
{
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::Cloth);
AZ_PROFILE_FUNCTION(Cloth);
if ((indices.size() % 3) != 0)
{
@@ -174,7 +176,7 @@ namespace NvCloth
AZStd::vector<AZ::Vector3>& outBitangents,
AZStd::vector<AZ::Vector3>& outNormals)
{
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::Cloth);
AZ_PROFILE_FUNCTION(Cloth);
if ((indices.size() % 3) != 0)
{