API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfaceDataTextureOptions

@codexo/exojs / rendering / stable

Construction options for DataTexture.

5
props
0
methods
0
events
Import
import { DataTextureOptions } from '@codexo/exojs'

Construction options for DataTexture.

Properties5
data?: ArrayBuffer | Float32Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike>
Optional external buffer. When omitted, an internal buffer is allocated sized exactly width * height * channels. When supplied: - A Uint8Array requires an 8-bit format (r8/rgba8). - A Float32Array requires a 32-bit float format (r32f/rgba32f). - An ArrayBuffer is accepted for any format and wrapped in the appropriate typed-array kind (zero-copy view, no allocation). In all cases the byte length must equal width * height * channels * bytesPerChannel, otherwise the constructor throws.
height: number
Sampling and upload overrides; defaults to nearest filtering and clamp-to-edge wrapping.
width: number
Source