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

Method ValidateFlags

Engine/source/EtRendering/GraphicsTypes/VertexInfo.cpp:113–124  ·  view source on GitHub ↗

------------------------------------- AttributeDescriptor::GetVertexSize Checks if required flags are supported

Source from the content-addressed store, hash-verified

111// Checks if required flags are supported
112//
113bool AttributeDescriptor::ValidateFlags(T_VertexFlags const supportedFlags, T_VertexFlags const requiredFlags)
114{
115 for (auto const attributeIt : AttributeDescriptor::s_VertexAttributes)
116 {
117 if ((requiredFlags & attributeIt.first) && !(supportedFlags & attributeIt.first))
118 {
119 return false;
120 }
121 }
122
123 return true;
124}
125
126//-------------------------------------------
127// AttributeDescriptor::DefineAttributeArray

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected