MCPcopy Index your code
hub / github.com/dawn-gpu/node-webgpu / align

Function align

example/example.js:43–43  ·  view source on GitHub ↗
(v, alignment)

Source from the content-addressed store, hash-verified

41});
42
43const align = (v, alignment) => Math.ceil(v / alignment) * alignment;
44
45const bytesPerRow = align(texture.width * 4, 256);
46const buffer = device.createBuffer({

Callers 1

example.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected