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

Function getOffKernel

test/internal/mixed-memory-optimize.js:6–14  ·  view source on GitHub ↗
(gpu)

Source from the content-addressed store, hash-verified

4describe('internal: mixed memory optimize');
5
6function getOffKernel(gpu) {
7 return gpu.createKernel(function(value) {
8 return value[this.thread.x];
9 }) // getFloatFromSampler2D
10 .setPrecision('single')
11 .setOutput([10])
12 .setPipeline(true)
13 .setOptimizeFloatMemory(false);
14}
15
16function getOnKernel(gpu) {
17 return gpu.createKernel(function(value) {

Callers 2

offOnOffFunction · 0.85
onOffOnFunction · 0.85

Calls 5

setPipelineMethod · 0.80
createKernelMethod · 0.80
setOutputMethod · 0.45
setPrecisionMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…