Navigation
API > API/Plugins > API/Plugins/ShaderAuditCore
Description
Format a cost value for display. When a BytecodeDatabase is attached, costs are size-weighted (bytes) and should be shown as KB/MB. Otherwise they are simple refcount-weighted counts shown as plain numbers.
| Name | UE::ShaderAudit::Utils::FormatCost |
| Type | function |
| Header File | /Engine/Plugins/Developer/ShaderToolkit/Source/ShaderAuditCore/Public/ShaderAuditTypes.h |
| Include Path | #include "ShaderAuditTypes.h" |
namespace UE
{
namespace ShaderAudit
{
namespace Utils
{
FString UE::ShaderAudit::Utils::FormatCost
(
float Cost,
bool bSizeWeighted
)
}
}
}