3D-Demo/jsm/renderers/webgpu/nodes/WebGPUNodeSampler.js

22 lines
304 B
JavaScript
Raw Normal View History

2022-10-14 16:50:42 +08:00
import WebGPUSampler from '../WebGPUSampler.js';
class WebGPUNodeSampler extends WebGPUSampler {
constructor( name, textureNode ) {
super( name, textureNode.value );
this.textureNode = textureNode;
}
getTexture() {
return this.textureNode.value;
}
}
export default WebGPUNodeSampler;