Skip to content

DataTextureParams

ts
type DataTextureParams = BaseTextureParams & {
  data: ArrayBufferView | null;
  width: number;
  height: number;
};

Parameters for creating a texture from raw data (TypedArray).

Type Declaration

NameTypeDescription
dataArrayBufferView | nullA typed array of texture data used to fill the texture.
widthnumberThe width of the texture in pixels.
heightnumberThe height of the texture in pixels.

See

BaseTextureParams

Released under the MIT License.