Skip to content

Uniforms beta ​

Interface of @v12-engine/render

ts
export interface Uniforms

A block of uniforms of a kind's own: its floats, kept and written in place by who owns it; write sends them

Members ​

data ​

ts
readonly data: Float32Array;

Its floats, written in place

dispose ​

ts
dispose(): void;

Frees its buffer on the card

resource ​

ts
readonly resource: unknown;

What a kind's material binds (KindMaterialOptions.resources)

write ​

ts
write(): void;

Sends data to the card