MCPcopy Index your code
hub / github.com/processing/p5.js / loadPixels

Method loadPixels

src/webgpu/p5.RendererWebGPU.js:3980–3984  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3978 }
3979
3980 async loadPixels() {
3981 this._promoteToFramebuffer();
3982 await this.mainFramebuffer.loadPixels();
3983 this.pixels = this.mainFramebuffer.pixels.slice();
3984 }
3985
3986 async get(x, y, w, h) {
3987 this._promoteToFramebuffer();

Callers

nothing calls this directly

Calls 2

_promoteToFramebufferMethod · 0.95
sliceMethod · 0.80

Tested by

no test coverage detected