NodeParser.js 447 B

12345678910111213141516171819202122
  1. /**
  2. * Base class for node parsers. A derived parser must be implemented
  3. * for each supported native shader language.
  4. */
  5. class NodeParser {
  6. /**
  7. * The method parses the given native code an returns a node function.
  8. *
  9. * @abstract
  10. * @param {String} source - The native shader code.
  11. * @return {NodeFunction} A node function.
  12. */
  13. parseFunction( /*source*/ ) {
  14. console.warn( 'Abstract function.' );
  15. }
  16. }
  17. export default NodeParser;
粤ICP备19079148号