UNPKG

@babylonjs/core

Version:

Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.

17 lines (16 loc) 920 B
import type { DepthTextureCreationOptions, TextureSize } from "../../Materials/Textures/textureCreationOptions.js"; import type { RenderTargetWrapper } from "../renderTargetWrapper.js"; import type { InternalTexture } from "../../Materials/Textures/internalTexture.js"; declare module "../../Engines/abstractEngine.js" { interface AbstractEngine { /** * Creates a depth stencil texture. * This is only available in WebGL 2 or with the depth texture extension available. * @param size The size of face edge in the texture. * @param options The options defining the texture. * @param rtWrapper The render target wrapper for which the depth/stencil texture must be created * @returns The texture */ createDepthStencilTexture(size: TextureSize, options: DepthTextureCreationOptions, rtWrapper: RenderTargetWrapper): InternalTexture; } }