WebGPUNodeSampledTexture.js 339 B

123456789101112131415161718192021
  1. import { WebGPUSampledTexture } from '../WebGPUSampledTexture.js';
  2. class WebGPUNodeSampledTexture extends WebGPUSampledTexture {
  3. constructor( name, textureNode ) {
  4. super( name, textureNode.value );
  5. this.textureNode = textureNode;
  6. }
  7. getTexture() {
  8. return this.textureNode.value;
  9. }
  10. }
  11. export { WebGPUNodeSampledTexture };