Renderer · interface

EncodedProgramShape

What encodeMaterial returns, as far as this needs it.

Explained in Hello world.

interface EncodedProgramShape
import type { EncodedProgramShape } from '@driftengine/core';

Properties

NameTypeDescription
latentWidthreadonlynumber
latentHeightreadonlynumber
componentsreadonlynumber
weightsreadonlyFloat32Array
shapereadonlyGpuDrivenNetwork['shape']
graphreadonlyGpuDrivenProgram['graph']
mipsreadonlyreadonly { readonly data: Uint8Array; }[]Level 0 first — encodeMaterial puts the latent itself there.