Class Texture3d

A 3D texture.

Hierarchy

Constructors

Properties

context: Context

The rendering context of this texture.

internal: WebGLTexture

The WebGL texture represented by this object.

The binding point of this texture.

Accessors

Methods

  • Assigns this texture to a texture unit and binds it to its binding point.

    Parameters

    • textureUnit: number

      The texture unit.

    Returns void

  • Executes the given function with this texture bound, then re-binds the previously-bound texture.

    Type Parameters

    • T

    Parameters

    • f: ((texture) => T)

      The function to execute.

        • (texture): T
        • Parameters

          Returns T

    Returns T

    The return value of the executed function.

Generated using TypeDoc