12345678910111213141516171819202122232425262728293031323334353637 |
- import WebGPUBinding from './WebGPUBinding.js';
- class WebGPUSampledTexture extends WebGPUBinding {
- constructor() {
- super();
- this.dimension = '2d';
- this.type = 'sampled-texture';
- this.visibility = GPUShaderStage.FRAGMENT;
- this.textureGPU = null; // set by the renderer
- Object.defineProperty( this, 'isSampledTexture', { value: true } );
- }
- }
- class WebGPUSampledCubeTexture extends WebGPUSampledTexture {
- constructor() {
- super();
- this.dimension = 'cube';
- Object.defineProperty( this, 'isSampledCubeTexture', { value: true } );
- }
- }
- export { WebGPUSampledTexture, WebGPUSampledCubeTexture };
|