DriftTexture · function

ensurePageDecoded

Decode a held page if the mode says the cache owns that, and it has not been done.

Explained in DriftTexture.

function ensurePageDecoded(cache: PageCache, hash: string): boolean
import { ensurePageDecoded } from '@driftengine/texture';

Parameters

ParameterTypeDescription
cachePageCache
hashstring

In depth

Returns whether the page's bytes are now the decoded ones. false in per-sample mode is the ordinary answer rather than a failure: the bytes are the compressed page and whoever samples decodes them.