9 namespace VertexSemanticId
23 namespace VertexSemanticFlags
28 PositionFlag = (1 << VertexSemanticId::Position),
29 UVFlag = (1 << VertexSemanticId::UV),
30 UV2Flag = (1 << VertexSemanticId::UV2),
31 Normal = (1 << VertexSemanticId::Normal),
32 Color = (1 << VertexSemanticId::Color)
35 inline FlagValues GetFlagForSemantic(
const VertexSemanticId::IdValues semantic)
37 return (VertexSemanticFlags::FlagValues)(1 << semantic);
40 inline FlagValues SetFlagForSemantic(
const FlagValues flags,
const VertexSemanticId::IdValues semantic)
42 return (VertexSemanticFlags::FlagValues)(flags | GetFlagForSemantic(semantic));
45 inline bool FlagsContainSemantic(
const FlagValues flags,
const VertexSemanticId::IdValues semantic)
47 return ((flags & GetFlagForSemantic(semantic)) != 0);