MCPcopy Create free account
hub / github.com/Tencent/tgfx / alignCursor

Method alignCursor

src/gpu/UniformBuffer.cpp:97–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97size_t UniformBuffer::alignCursor(size_t alignment) const {
98 return (cursor + alignment - 1) / alignment * alignment;
99}
100
101UniformBuffer::Entry UniformBuffer::EntryOf(UniformFormat format) {
102 switch (format) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected