| 140 | } |
| 141 | |
| 142 | VertexElement 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 | |
| 152 | GPUVertexLayout* GPUVertexLayout::Get(const Elements& elements, bool explicitOffsets) |
| 153 | { |
no test coverage detected