Class: WriteOnlyDepthBuffer

WriteOnlyDepthBuffer

WriteOnlyDepthBuffer is a depth buffer that can be used with FrameBuffer as a depth buffer if read-backs are not required.


new WriteOnlyDepthBuffer()

Author:
  • derschmale <http://www.derschmale.com>

Members


format

The format of the depth buffer.


height

The height of the depth buffer.


width

The width of the depth buffer.

Methods


init(width, height, stencil)

Initializes the depth buffer.

Parameters:
Name Type Description
width

The width of the depth buffer.

height

The height of the depth buffer.

stencil

Whether or not a stencil buffer is required.