Function getMemoryUsageInBytes

Synopsis

#include <Source/Falcor/Scene/Animation/AnimationController.h>

uint64_t getMemoryUsageInBytes() const

Description

Get the total GPU memory usage in bytes.

Source

Lines 189-201 in Source/Falcor/Scene/Animation/AnimationController.cpp. Line 120 in Source/Falcor/Scene/Animation/AnimationController.h.

uint64_t AnimationController::getMemoryUsageInBytes() const
{
    uint64_t m = 0;
    m += mpWorldMatricesBuffer ? mpWorldMatricesBuffer->getSize() : 0;
    m += mpPrevWorldMatricesBuffer ? mpPrevWorldMatricesBuffer->getSize() : 0;
    m += mpInvTransposeWorldMatricesBuffer ? mpInvTransposeWorldMatricesBuffer->getSize() : 0;
    m += mpSkinningMatricesBuffer ? mpSkinningMatricesBuffer->getSize() : 0;
    m += mpInvTransposeSkinningMatricesBuffer ? mpInvTransposeSkinningMatricesBuffer->getSize() : 0;
    m += mpSkinningStaticVertexData ? mpSkinningStaticVertexData->getSize() : 0;
    m += mpSkinningDynamicVertexData ? mpSkinningDynamicVertexData->getSize() : 0;
    m += mpPrevVertexData ? mpPrevVertexData->getSize() : 0;
    return m;
}





Add Discussion as Guest

Log in