Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AcademySoftwareFoundation/OpenColorIO
/ alignOffset
Function
alignOffset
src/OpenColorIO/GpuShader.cpp:39–46 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
37
}
38
39
std::size_t alignOffset(std::size_t offset, std::size_t alignment)
40
{
41
if (alignment == 0)
42
{
43
throw Exception(
"Alignment cannot be zero."
);
44
}
45
return ((offset + alignment - 1) / alignment) * alignment;
46
}
47
48
}
49
Callers
1
addUniform
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected