WebGPUSampler.js 358 B

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