/
githubmirror
/
pixijs
Обзор
Документация
Войти
/
githubmirror
/
pixijs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
src/rendering/renderers/gpu/shader/BindResource.ts
40 строк
1 KB
Zyie
chore: add standard/advanced tags to documentation (#11448)
03 июн 2025, 10:12
Не верифицирован
03 июн 2025, 10:12
7d91234
Код
Авторство
О чём код?
import type { BindGroup } from './BindGroup'; /** * an interface that allows a resource to be bound to the gpu in a bind group * @category rendering * @advanced */ export interface BindResource { /** * The type of resource this is * @ignore */ _resourceType: string; /** * Unique id for this resource this can change and is used to link the gpu * @ignore */ _resourceId: number; _touched: number; /** * a boolean that indicates if the resource has been destroyed. * If true, the resource should not be used and any bind groups * that will release any references to this resource. * @ignore */ destroyed: boolean; /** * event dispatch whenever the underlying resource needs to change * this could be a texture or buffer that has been resized. * This is important as it allows the renderer to know that it needs to rebind the resource */ on?(event: 'change', listenerFunction: (resource: BindResource) => void, listener: BindGroup): void /** todo */ off?(event: 'change', listenerFunction: (resource: BindResource) => void, listener: BindGroup): void }