Go to the documentation of this file.
36 template <
typename SSType>
41 template <
typename SSType,
typename ArgType>
47 template <
typename SSType,
typename FirstArgType,
typename... RestArgsType>
48 void FormatStrSS(SSType& ss,
const FirstArgType& FirstArg,
const RestArgsType&... RestArgs)
54 template <
typename... RestArgsType>
62 template <
typename Type>
75 template <
typename Type>
81 template <
typename SSType,
typename Type>
85 if (ref_size >= (1 << 30))
87 ss << std::fixed << std::setprecision(Arg.
precision) <<
static_cast<double>(Arg.
size) /
double{1 << 30} <<
" GB";
89 else if (ref_size >= (1 << 20))
91 ss << std::fixed << std::setprecision(Arg.
precision) <<
static_cast<double>(Arg.
size) /
double{1 << 20} <<
" MB";
93 else if (ref_size >= (1 << 10))
95 ss << std::fixed << std::setprecision(Arg.
precision) <<
static_cast<double>(Arg.
size) /
double{1 << 10} <<
" KB";
99 ss << Arg.
size << (((Arg.
size & 0x01) == 0x01) ?
" Byte" :
" Bytes");
void FormatStrSS(SSType &ss)
Definition: FormatString.hpp:37
MemorySizeFormatter< Type > FormatMemorySize(Type _size, int _precision=0, Type _ref_size=0)
Definition: FormatString.hpp:76
const D3D12_PIPELINE_STATE_SUBOBJECT_TYPE Type
Definition: PipelineStateD3D12Impl.cpp:69
std::string FormatString(const RestArgsType &... Args)
Definition: FormatString.hpp:55
The library uses Direct3D-style math:
Definition: AdvancedMath.hpp:37