Renderer · function
uploadsCompressed
Whether a width by height source in format uploads as blocks on a device offering
available. Level 0 must be whole blocks each way: WebGPU refuses any other size for a block
texture, and WebGL2's extensions say the same, so a 6x6 image in 4x4 blocks is decoded rather than
refused. What would make that wrong is a device that pads; none is relied on here.
Explained in Hello world.
function uploadsCompressed(format: BlockFormat, srgb: boolean, width: number, height: number, available: readonly CompressedTextureFormat[]): booleanimport { uploadsCompressed } from '@driftengine/core';Parameters
| Parameter | Type | Description |
|---|---|---|
format | BlockFormat | |
srgb | boolean | |
width | number | |
height | number | |
available | readonly CompressedTextureFormat[] |