three
Version:
JavaScript 3D library
24 lines (18 loc) • 478 B
JavaScript
import { warn } from '../../utils.js';
/**
* Base class for node parsers. A derived parser must be implemented
* for each supported native shader language.
*/
class NodeParser {
/**
* The method parses the given native code an returns a node function.
*
* @abstract
* @param {string} source - The native shader code.
* @return {NodeFunction} A node function.
*/
parseFunction( /*source*/ ) {
warn( 'Abstract function.' );
}
}
export default NodeParser;