abstractEngine.texture.d.ts 908 B

12345678910111213141516
  1. import type { DepthTextureCreationOptions, TextureSize } from "../../Materials/Textures/textureCreationOptions";
  2. import type { RenderTargetWrapper } from "../renderTargetWrapper";
  3. import type { InternalTexture } from "../../Materials/Textures/internalTexture";
  4. declare module "../../Engines/abstractEngine" {
  5. interface AbstractEngine {
  6. /**
  7. * Creates a depth stencil texture.
  8. * This is only available in WebGL 2 or with the depth texture extension available.
  9. * @param size The size of face edge in the texture.
  10. * @param options The options defining the texture.
  11. * @param rtWrapper The render target wrapper for which the depth/stencil texture must be created
  12. * @returns The texture
  13. */
  14. createDepthStencilTexture(size: TextureSize, options: DepthTextureCreationOptions, rtWrapper: RenderTargetWrapper): InternalTexture;
  15. }
  16. }