/
githubmirror
/
pixijs
Обзор
Документация
Войти
/
githubmirror
/
pixijs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
src/rendering/renderers/shared/texture/sources/CompressedSource.ts
22 строки
598 B
Mat Groves
feat: Implement mip level rendering support in the rendering system (#11801)
30 янв 2026, 18:52
Не верифицирован
30 янв 2026, 18:52
8f75cd1
Код
Авторство
О чём код?
import { TextureSource } from './TextureSource'; import type { TextureSourceOptions } from './TextureSource'; /** * A texture source that uses a compressed resource, such as an array of Uint8Arrays. * It is used for compressed textures that can be uploaded to the GPU. * @category rendering * @advanced */ export class CompressedSource extends TextureSource<Uint8Array[]> { public readonly uploadMethodId = 'compressed'; constructor(options: TextureSourceOptions) { super({ ...options, mipLevelCount: options.resource.length, }); } }