MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / UpdateStride

Function UpdateStride

deps/LLGL/sources/Renderer/VertexFormat.cpp:18–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17
18static 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
29void VertexFormat::AppendAttribute(
30 const VertexAttribute& attrib,

Callers 1

AppendAttributeMethod · 0.85

Calls 2

SetStrideMethod · 0.80
GetSizeMethod · 0.45

Tested by

no test coverage detected