Buckets:
| import Binding from './Binding.js'; | |
| /** | |
| * Represents a sampler binding type. | |
| * | |
| * @private | |
| * @augments Binding | |
| */ | |
| class Sampler extends Binding { | |
| /** | |
| * Constructs a new sampler. | |
| * | |
| * @param {string} name - The samplers's name. | |
| * @param {?Texture} texture - The texture this binding is referring to. | |
| */ | |
| constructor( name, texture ) { | |
| super( name ); | |
| /** | |
| * The texture the sampler is referring to. | |
| * | |
| * @type {?Texture} | |
| */ | |
| this.texture = texture; | |
| /** | |
| * The binding's version. | |
| * | |
| * @type {number} | |
| */ | |
| this.version = texture ? texture.version : 0; | |
| /** | |
| * This flag can be used for type testing. | |
| * | |
| * @type {boolean} | |
| * @readonly | |
| * @default true | |
| */ | |
| this.isSampler = true; | |
| } | |
| } | |
| export default Sampler; | |
Xet Storage Details
- Size:
- 769 Bytes
- Xet hash:
- cdc05c8372065f0ba7b0d0c9bc4f5838c724d1bb3ba357179ab912199e1c1be7
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.