Documentation / @debuffjp/assets / AssetsOptions
Interface: AssetsOptions
Defined in: ../debuff/packages/assets/src/index.ts:63
Options for Assets.
Properties
compressed?
optionalcompressed?:object
Defined in: ../debuff/packages/assets/src/index.ts:69
Load GPU-compressed copies of images (written by assets.compress in debuff.config) instead of PNGs. Pass the formats the renderer decodes and the parser: { formats: draw.compressedFormats, parse: parseKtx2 }. An image without a matching copy loads as PNG. Since 0.35.
formats
formats:
ReadonlySet<string>
parse
parse: (
bytes) =>CompressedImage
Parameters
bytes
Uint8Array