MCPcopy
hub / github.com/processing/p5.js / _alignBytesPerRow

Method _alignBytesPerRow

src/webgpu/p5.RendererWebGPU.js:3236–3239  ·  view source on GitHub ↗
(bytesPerRow)

Source from the content-addressed store, hash-verified

3234 }
3235
3236 _alignBytesPerRow(bytesPerRow) {
3237 // WebGPU requires bytesPerRow to be a multiple of 256 bytes for texture-to-buffer copies
3238 return Math.ceil(bytesPerRow / 256) * 256;
3239 }
3240
3241 //////////////////////////////////////////////
3242 // Framebuffer methods

Callers 3

readFramebufferPixelsMethod · 0.95
readFramebufferPixelMethod · 0.95
readFramebufferRegionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected