BufferNode.js 391 B

12345678910111213141516171819202122232425
  1. import InputNode from '../core/InputNode.js';
  2. class BufferNode extends InputNode {
  3. constructor( value, bufferType, bufferCount = 0 ) {
  4. super( 'buffer' );
  5. this.value = value;
  6. this.bufferType = bufferType;
  7. this.bufferCount = bufferCount;
  8. }
  9. getNodeType( /* builder */ ) {
  10. return this.bufferType;
  11. }
  12. }
  13. BufferNode.prototype.isBufferNode = true;
  14. export default BufferNode;