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

Method getTexture

src/webgl/p5.Texture.js:290–296  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

288 }
289
290 getTexture() {
291 if (this.isFramebufferTexture) {
292 return this.src.rawTexture();
293 } else {
294 return this.textureHandle;
295 }
296 }
297
298 getSampler() {
299 return this._renderer.getSampler(this);

Callers 15

constructorMethod · 0.95
constructorMethod · 0.45
setupFunction · 0.45
setupFunction · 0.45
p5.Shader.jsFile · 0.45
testTextureSetFunction · 0.45
p5.Texture.jsFile · 0.45
pixelateShaderCallbackFunction · 0.45
bloomShaderCallbackFunction · 0.45
webgpu.jsFile · 0.45
webgl.jsFile · 0.45
pixelateShaderCallbackFunction · 0.45

Calls 1

rawTextureMethod · 0.80

Tested by

no test coverage detected