MCPcopy Create free account
hub / github.com/gpujs/gpu.js / circlicalLogic

Function circlicalLogic

test/internal/deep-types.js:246–259  ·  view source on GitHub ↗
(mode)

Source from the content-addressed store, hash-verified

244});
245
246function circlicalLogic(mode) {
247 const gpu = new GPU({ mode });
248 function child1Function(child1FunctionArgument1) {
249 return child1Function(child1FunctionArgument1);
250 }
251 gpu
252 .addFunction(child1Function);
253 const kernel = gpu.createKernel(function(kernelArgument1) {
254 return child1Function(kernelArgument1);
255 }, { output: [1] });
256 assert.throws(() => {
257 kernel(1.5);
258 });
259}
260
261(GPU.isWebGLSupported ? test : skip)('circlical logic webgl', () => {
262 circlicalLogic('webgl');

Callers 1

deep-types.jsFile · 0.85

Calls 4

addFunctionMethod · 0.95
createKernelMethod · 0.95
child1FunctionFunction · 0.85
kernelFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…