| 16 | |
| 17 | |
| 18 | static void UpdateStride(VertexFormat& vertexFormat) |
| 19 | { |
| 20 | /* Update stride for each attribute */ |
| 21 | std::uint32_t stride = 0; |
| 22 | |
| 23 | for (const auto& attr : vertexFormat.attributes) |
| 24 | stride = std::max(stride, attr.offset + attr.GetSize()); |
| 25 | |
| 26 | vertexFormat.SetStride(stride); |
| 27 | } |
| 28 | |
| 29 | void VertexFormat::AppendAttribute( |
| 30 | const VertexAttribute& attrib, |
no test coverage detected