BufferNode.js 362 B

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