WebGPUSampledTexture.js 375 B

1234567891011121314151617181920
  1. import WebGPUBinding from './WebGPUBinding.js';
  2. class WebGPUSampledTexture extends WebGPUBinding {
  3. constructor() {
  4. super();
  5. this.type = 'sampled-texture';
  6. this.visibility = GPUShaderStage.FRAGMENT;
  7. this.textureGPU = null; // set by the renderer
  8. Object.defineProperty( this, 'isSampledTexture', { value: true } );
  9. }
  10. }
  11. export default WebGPUSampledTexture;