MCPcopy Create free account
hub / github.com/Illation/ETEngine / PrintFlags

Method PrintFlags

Engine/source/EtRendering/GraphicsTypes/VertexInfo.cpp:73–86  ·  view source on GitHub ↗

--------------------------------- AttributeDescriptor::PrintFlags Converts Vertex Flags into a string

Source from the content-addressed store, hash-verified

71// Converts Vertex Flags into a string
72//
73std::string AttributeDescriptor::PrintFlags(T_VertexFlags const flags)
74{
75 std::string flagstring;
76
77 for (auto const attributeIt : AttributeDescriptor::s_VertexAttributes)
78 {
79 if (flags & attributeIt.first)
80 {
81 flagstring += attributeIt.second.name + std::string(", ");
82 }
83 }
84
85 return flagstring;
86}
87
88//-------------------------------------
89// AttributeDescriptor::GetVertexSize

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected