/
githubmirror
/
pixijs
Обзор
Документация
Войти
/
githubmirror
/
pixijs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
src/rendering/renderers/gl/GlRenderTarget.ts
27 строк
855 B
Mat Groves
feat: render to array layer (#11803)
03 фев 2026, 16:20
Не верифицирован
03 фев 2026, 16:20
d537b58
Код
Авторство
О чём код?
/** * Represents a render target. * @category rendering * @ignore */ export class GlRenderTarget { public width = -1; public height = -1; public msaa = false; /** * Tracks which mip level is currently attached to this render target's framebuffer. * This lets us skip redundant framebufferTexture2D calls on the common path. * @internal */ public _attachedMipLevel = 0; /** * Tracks which array layer (or cube face index) is currently attached to this render target's framebuffer. * For non-array 2D textures this will always be 0. * @internal */ public _attachedLayer = 0; public framebuffer: WebGLFramebuffer; public resolveTargetFramebuffer: WebGLFramebuffer; public msaaRenderBuffer: WebGLRenderbuffer[] = []; public depthStencilRenderBuffer: WebGLRenderbuffer; }