Buckets:
| import StorageBufferAttribute from './StorageBufferAttribute.js'; | |
| /** | |
| * This special type of buffer attribute is intended for compute shaders. | |
| * It can be used to encode draw parameters for indirect draw calls. | |
| * | |
| * Note: This type of buffer attribute can only be used with `WebGPURenderer` | |
| * and a WebGPU backend. | |
| * | |
| * @augments StorageBufferAttribute | |
| */ | |
| class IndirectStorageBufferAttribute extends StorageBufferAttribute { | |
| /** | |
| * Constructs a new storage buffer attribute. | |
| * | |
| * @param {number|Uint32Array} count - The item count. It is also valid to pass a `Uint32Array` as an argument. | |
| * The subsequent parameter is then obsolete. | |
| * @param {number} itemSize - The item size. | |
| */ | |
| constructor( count, itemSize ) { | |
| super( count, itemSize, Uint32Array ); | |
| /** | |
| * This flag can be used for type testing. | |
| * | |
| * @type {boolean} | |
| * @readonly | |
| * @default true | |
| */ | |
| this.isIndirectStorageBufferAttribute = true; | |
| } | |
| } | |
| export default IndirectStorageBufferAttribute; | |
Xet Storage Details
- Size:
- 998 Bytes
- Xet hash:
- cb2b15ac63718d7f5515aa7e92f81233037ff7dbcf11f312b4d919c2adc43709
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.