Skip to content
Shapemetry

@huukhanhnguyen/model / schema/textureResolve

schema/textureResolve

ResolveTextureOptions

ResolveTextureOptions = { argsOverride?: Record<string, string>; cache?: Map<string, ImageBuffer>; imageOf?: (url) => TextureData | undefined; registry?: RegistryHost; textures?: Chain[]; }

argsOverride?

optional argsOverride?: Record<string, string>

Per-call rebinding of the ENTRY chain's own parameters.

cache?

optional cache?: Map<string, ImageBuffer>

Intra-resolve memo (see TextureScope.cache).

imageOf?

optional imageOf?: (url) => TextureData | undefined

Bitmap registry for the image source (Store pre-load).

Parameters

url

string

Returns

TextureData | undefined

registry?

optional registry?: RegistryHost

Needed to evaluate parameters; absent → every chain sees {}.

textures?

optional textures?: Chain[]

Sibling chains for blend/warp/channels cross-references.

Last updated: 📖 1 min readEdit on GitHub