MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / FindElement

Method FindElement

Source/Engine/Graphics/Shaders/GPUVertexLayout.cpp:142–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142VertexElement GPUVertexLayout::FindElement(VertexElement::Types type) const
143{
144 for (const VertexElement& e : _elements)
145 {
146 if (e.Type == type)
147 return e;
148 }
149 return VertexElement();
150}
151
152GPUVertexLayout* GPUVertexLayout::Get(const Elements& elements, bool explicitOffsets)
153{

Callers 3

InitMethod · 0.80
InitMethod · 0.80
SetupSkeletonMethod · 0.80

Calls 1

VertexElementClass · 0.50

Tested by

no test coverage detected