import { Device } from '../Device'; import { DepthFormatOption } from '../enums'; /** * Options to be used to create a new DepthBuffer * * @public */ export interface DepthBufferOptions { /** * The width of the depth buffer surface */ width: number; /** * The height of the depth buffer surface */ height: number; /** * The depth and stencil format */ depthFormat?: DepthFormatOption; /** * The existing */ handle?: WebGLRenderbuffer; } /** * Describes a depth buffer object * * @public */ export declare abstract class DepthBuffer { /** * The graphics device */ abstract readonly device: Device; /** * The width of the surface in pixels */ width: number; /** * The height of the surface in pixels */ height: number; /** * The used surface format */ depthFormat: number; /** * Returns the WebGl constant name of the currently used depth format */ get depthFormatName(): string; /** * Re-initializes the instance * @param options - The setup options to initialize the instance */ init(options: DepthBufferOptions): DepthBuffer; /** * Creates the graphics resource */ abstract create(): this; /** * Deletes the wrapped WebGLRenderbuffer */ abstract destroy(): this; } //# sourceMappingURL=DepthBuffer.d.ts.map