MCPcopy Create free account
hub / github.com/csyonghe/Spire / RoundToAlignment

Function RoundToAlignment

Source/SpireCore/IL.cpp:62–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 }
61
62 int RoundToAlignment(int offset, int alignment)
63 {
64 int remainder = offset % alignment;
65 if (remainder == 0)
66 return offset;
67 else
68 return offset + (alignment - remainder);
69 }
70
71 int GetMaxResourceBindings(BindableResourceType type)
72 {

Callers 2

UpdateModuleLibraryMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected