MCPcopy Create free account
hub / github.com/glslify/glslify / transform

Function transform

test/node.js:58–65  ·  view source on GitHub ↗
(file, src, opts, done)

Source from the content-addressed store, hash-verified

56
57test('test function transform with post option', function(t) {
58 var transform = function (file, src, opts, done) {
59 src = src.toUpperCase();
60 if (done) {
61 done(null, src);
62 } else {
63 return src;
64 }
65 }
66 var output = glx([
67 ' #pragma glslify: noise = require("glsl-noise/simplex/3d")',
68 ' precision mediump float;',

Callers 2

bundleFunction · 0.85
nextFunction · 0.85

Calls 1

doneFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…