@pixi/core
Version:
Core PixiJS
31 lines (30 loc) • 1.22 kB
TypeScript
import { MSAA_QUALITY } from '@pixi/constants';
import type { Framebuffer } from './Framebuffer';
/**
* Internal framebuffer for WebGL context.
* @memberof PIXI
*/
export declare class GLFramebuffer {
/** The WebGL framebuffer. */
framebuffer: WebGLFramebuffer;
/** The renderbuffer for depth and/or stencil (DEPTH24_STENCIL8, DEPTH_COMPONENT24, or STENCIL_INDEX8) */
stencil: WebGLRenderbuffer;
/** Detected AA samples number. */
multisample: MSAA_QUALITY;
/** In case MSAA, we use this Renderbuffer instead of colorTextures[0] when we write info. */
msaaBuffer: WebGLRenderbuffer;
/**
* In case we use MSAA, this is actual framebuffer that has colorTextures[0]
* The contents of that framebuffer are read when we use that renderTexture in sprites
*/
blitFramebuffer: Framebuffer;
/** Latest known version of framebuffer. */
dirtyId: number;
/** Latest known version of framebuffer format. */
dirtyFormat: number;
/** Latest known version of framebuffer size. */
dirtySize: number;
/** Store the current mipmap of the textures the framebuffer will write too. */
mipLevel: number;
constructor(framebuffer: WebGLTexture);
}