WebGPUUniform constructor

WebGPUUniform(
  1. dynamic name, [
  2. dynamic value = null
])

Implementation

WebGPUUniform(name, [value = null]) {
  this.name = name;
  this.value = value;

  this.boundary =
      0; // used to build the uniform buffer according to the STD140 layout
  this.itemSize = 0;

  this.offset =
      0; // this property is set by WebGPUUniformsGroup and marks the start position in the uniform buffer
}