MCPcopy Create free account
hub / github.com/crosire/reshade / align_up

Function align_up

source/effect_codegen_spirv.cpp:22–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20using namespace reshadefx;
21
22inline uint32_t align_up(uint32_t size, uint32_t alignment)
23{
24 alignment -= 1;
25 return ((size + alignment) & ~alignment);
26}
27
28/// <summary>
29/// A single instruction in a SPIR-V module

Callers 1

define_uniformMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected