Skip to content

@bloopjs/toodle


@bloopjs/toodle / Toodle / ToodleOptions

Type Alias: ToodleOptions

ToodleOptions = object

Defined in: Toodle.ts:761

Properties

backend?

optional backend: BackendType | "auto"

Defined in: Toodle.ts:785

The rendering backend to use.

auto: Automatically detect the best available backend (WebGPU > WebGL).

webgpu: Use WebGPU backend. Throws if WebGPU is not available.

webgl2: Use WebGL 2 backend (fallback for older browsers).

Default

ts
"auto"

filter?

optional filter: "nearest" | "linear"

Defined in: Toodle.ts:772

The filter mode to use for the default quad shader. see: https://webgpufundamentals.org/webgpu/lessons/webgpu-textures.html#a-mag-filter

nearest: nearest neighbor sampling. makes pixel art look sharp and vector art look jaggy.

linear: linear sampling. makes vector art look smooth and pixel art look blurry.

Default

ts
"linear"

limits?

optional limits: LimitsOptions

Defined in: Toodle.ts:773