UNPKG

1.2 kBTypeScriptView Raw
1import { RenderTargetOptions } from "../core/RenderTarget.js";
2import { DataArrayTexture } from "../textures/DataArrayTexture.js";
3import { WebGLRenderTarget } from "./WebGLRenderTarget.js";
4
5/**
6 * This type of render target represents an array of textures.
7 */
8export class WebGLArrayRenderTarget extends WebGLRenderTarget {
9 /**
10 * Creates a new WebGLArrayRenderTarget.
11 *
12 * @param width the width of the render target, in pixels. Default is `1`.
13 * @param height the height of the render target, in pixels. Default is `1`.
14 * @param depth the depth/layer count of the render target. Default is `1`.
15 * @param options optional object that holds texture parameters for an auto-generated target texture and
16 * depthBuffer/stencilBuffer booleans. See {@link WebGLRenderTarget} for details.
17 */
18 constructor(width?: number, height?: number, depth?: number, options?: RenderTargetOptions);
19
20 textures: DataArrayTexture[];
21
22 /**
23 * The texture property is overwritten with an instance of {@link DataArrayTexture}.
24 */
25 get texture(): DataArrayTexture;
26 set texture(value: DataArrayTexture);
27
28 readonly isWebGLArrayRenderTarget: true;
29}