WebGPUSampledTexture.js 439 B

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