Skip to content

Commit 51fe268

Browse files
committed
Remove comments from bundles. Stub HeadlessGL.
1 parent cd80caf commit 51fe268

19 files changed

+31217
-13713
lines changed

dist/gpu-browser-core.js

Lines changed: 11288 additions & 13691 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/gpu-browser-core.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/gpu-browser-core.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/gpu-browser-core.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/gpu-browser.js

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* GPU Accelerated JavaScript
66
*
77
* @version 2.0.0
8-
* @date Thu Sep 19 2019 11:40:19 GMT-0400 (Eastern Daylight Time)
8+
* @date Fri Sep 20 2019 21:34:42 GMT-0400 (Eastern Daylight Time)
99
*
1010
* @license MIT
1111
* The MIT License
@@ -19715,12 +19715,46 @@ void main(void) {
1971519715
}`)();
1971619716
}
1971719717

19718+
/**
19719+
* Stub for HeadlessGL.
19720+
*/
19721+
class HeadlessGLKernel extends WebGLKernel {
19722+
static get isSupported() { return false }
19723+
static isContextMatch() { return false }
19724+
static getIsTextureFloat() { return false }
19725+
static getIsDrawBuffers() { return false }
19726+
static getChannelCount() { return 1 }
19727+
static get testCanvas() { return null }
19728+
static get testContext() { return null }
19729+
static get features() { return null }
19730+
static setupFeatureChecks() {}
19731+
static destroyContext() {}
19732+
initCanvas() { return {} }
19733+
initContext() { return null }
19734+
toString() { return '' }
19735+
initExtensions() {}
19736+
build() {}
19737+
destroyExtensions() {}
19738+
setOutput() {}
19739+
19740+
static getFeatures() {
19741+
return Object.freeze({
19742+
isFloatRead: false,
19743+
isIntegerDivisionAccurate: false,
19744+
isTextureFloat: false,
19745+
isDrawBuffers: false,
19746+
kernelMap: false,
19747+
channelCount: 1,
19748+
});
19749+
}
19750+
}
1971819751
const lib = GPU;
1971919752
lib.alias = alias;
1972019753
lib.CPUFunctionNode = CPUFunctionNode;
1972119754
lib.CPUKernel = CPUKernel;
1972219755
lib.FunctionBuilder = FunctionBuilder;
1972319756
lib.FunctionNode = FunctionNode;
19757+
lib.HeadlessGLKernel = HeadlessGLKernel;
1972419758
lib.Input = Input;
1972519759
lib.input = input;
1972619760
lib.Texture = Texture;

dist/gpu-browser.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/gpu-browser.min.js

Lines changed: 19771 additions & 1 deletion
Large diffs are not rendered by default.

dist/gpu-browser.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/gpu.js

Lines changed: 17 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/gpu.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)