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

Method getConstantType

src/backend/function-node.js:310–320  ·  view source on GitHub ↗
(constantName)

Source from the content-addressed store, hash-verified

308 }
309
310 getConstantType(constantName) {
311 if (this.constantTypes[constantName]) {
312 const type = this.constantTypes[constantName];
313 if (type === 'Float') {
314 return 'Number';
315 } else {
316 return type;
317 }
318 }
319 throw new Error(`Type for constant "${ constantName }" not declared`);
320 }
321
322 toString() {
323 if (this._string) return this._string;

Callers 2

getTypeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected