Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
43
const
align = (v, alignment) => Math.ceil(v / alignment) * alignment;
44
45
const
bytesPerRow = align(texture.width * 4, 256);
46
const
buffer = device.createBuffer({
Callers
1
example.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected