MCPcopy Index your code
hub / github.com/gpujs/gpu.js / greenCanvas

Function greenCanvas

test/browser-test-utils.js:60–69  ·  view source on GitHub ↗
(mode, width, height)

Source from the content-addressed store, hash-verified

58}
59
60function greenCanvas(mode, width, height) {
61 const gpu = new GPU({ mode });
62 const kernel = gpu.createKernel(function() {
63 this.color(0, 1, 0, 1);
64 }, { output: [width, height], graphical: true });
65 kernel();
66 const canvas = kernel.canvas;
67 gpu.destroy();
68 return canvas;
69}
70
71const _exports = {
72 greenCanvas,

Callers 7

canvasArgumentTestFunction · 0.85
canvasConstantTestFunction · 0.85
testArgumentFunction · 0.85
testArgumentFunction · 0.85
testArgumentFunction · 0.85
testArgumentFunction · 0.85

Calls 4

createKernelMethod · 0.95
destroyMethod · 0.95
kernelFunction · 0.85
colorMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…