/
githubmirror
/
pixijs
Обзор
Документация
Войти
/
githubmirror
/
pixijs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
src/rendering/renderers/gpu/GpuUboSystem.ts
26 строк
757 B
Zyie
chore: add standard/advanced tags to documentation (#11448)
03 июн 2025, 10:12
Не верифицирован
03 июн 2025, 10:12
7d91234
Код
Авторство
О чём код?
import { ExtensionType } from '../../../extensions/Extensions'; import { UboSystem } from '../shared/shader/UboSystem'; import { createUboElementsWGSL } from './shader/utils/createUboElementsWGSL'; import { createUboSyncFunctionWGSL } from './shader/utils/createUboSyncFunctionWGSL'; /** * System plugin to the renderer to manage uniform buffers. With a WGSL twist! * @category rendering * @advanced */ export class GpuUboSystem extends UboSystem { /** @ignore */ public static extension = { type: [ExtensionType.WebGPUSystem], name: 'ubo', } as const; constructor() { super({ createUboElements: createUboElementsWGSL, generateUboSync: createUboSyncFunctionWGSL, }); } }