Renderer · interface
EncodedProgramShape
What encodeMaterial returns, as far as this needs it.
Explained in Hello world.
interface EncodedProgramShapeimport type { EncodedProgramShape } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
latentWidthreadonly | number | |
latentHeightreadonly | number | |
componentsreadonly | number | |
weightsreadonly | Float32Array | |
shapereadonly | GpuDrivenNetwork['shape'] | |
graphreadonly | GpuDrivenProgram['graph'] | |
mipsreadonly | readonly { readonly data: Uint8Array; }[] | Level 0 first — encodeMaterial puts the latent itself there. |