1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 10:49:36 +02:00
Oinktube/node_modules/three/examples/jsm/renderers/webgpu/WebGPUSampler.js
2023-12-11 11:59:56 -03:00

23 lines
456 B
JavaScript

import WebGPUBinding from './WebGPUBinding.js';
import { GPUBindingType } from './constants.js';
class WebGPUSampler extends WebGPUBinding {
constructor( name, texture ) {
super( name );
this.texture = texture;
this.type = GPUBindingType.Sampler;
this.visibility = GPUShaderStage.FRAGMENT;
this.samplerGPU = null; // set by the renderer
Object.defineProperty( this, 'isSampler', { value: true } );
}
}
export default WebGPUSampler;