UNPKG

637 BTypeScriptView Raw
1import { BufferResource } from './BufferResource';
2import type { Renderer } from '../../Renderer';
3import type { BaseTexture } from '../BaseTexture';
4import type { GLTexture } from '../GLTexture';
5/**
6 * Resource type for DepthTexture.
7 * @memberof PIXI
8 */
9export declare class DepthResource extends BufferResource {
10 /**
11 * Upload the texture to the GPU.
12 * @param renderer - Upload to the renderer
13 * @param baseTexture - Reference to parent texture
14 * @param glTexture - glTexture
15 * @returns - true is success
16 */
17 upload(renderer: Renderer, baseTexture: BaseTexture, glTexture: GLTexture): boolean;
18}