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

Method translateSource

src/backend/web-gl/kernel.js:592–598  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

590 }
591
592 translateSource() {
593 const functionBuilder = FunctionBuilder.fromKernel(this, WebGLFunctionNode, {
594 fixIntegerDivisionAccuracy: this.fixIntegerDivisionAccuracy
595 });
596 this.translatedSource = functionBuilder.getPrototypeString('kernel');
597 this.setupReturnTypes(functionBuilder);
598 }
599
600 setupReturnTypes(functionBuilder) {
601 if (!this.graphical && !this.returnType) {

Callers 1

buildMethod · 0.95

Calls 3

setupReturnTypesMethod · 0.95
fromKernelMethod · 0.80
getPrototypeStringMethod · 0.80

Tested by

no test coverage detected