DataTextureParams
ts
type DataTextureParams = BaseTextureParams & {
data: ArrayBufferView | null;
width: number;
height: number;
};Parameters for creating a texture from raw data (TypedArray).
Type Declaration
| Name | Type | Description |
|---|---|---|
data | ArrayBufferView | null | A typed array of texture data used to fill the texture. |
width | number | The width of the texture in pixels. |
height | number | The height of the texture in pixels. |