Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Wizard

This wizard provides means for non-trivial, context specific framebuffer setups, texture formats, etc.

Hierarchy

  • Wizard

Index

Constructors

constructor

Methods

Static queryInternalTextureFormat

  • Queries the internal texture format matching the target format best for the given context. For 'auto' precision the format of maximum accuracy supported is returned.

    Parameters

    • context: Context

      Wrapped gl context for function resolution (passed to all stages).

    • target: number

      Target format, e.g., gl.RGBA, used to find the supported precision/accuracy for.

    • precision: Precision = ...

      Requested precision of the internal format: 'auto', 'float', 'half', 'byte'.

    Returns [number, number, Precision]

    • 3-tuple containing the (1) internal format, (2) the type (required for some internal formats to work ...), and (3) the precision enum/string that matches the resulting format best.

Static Private queryPrecisionSupport

  • Queries the support of internal texture precision given a query precision within the given context.

    Parameters

    • context: Context

      Wrapped gl context for function resolution (passed to all stages).

    • precision: Precision

      Requested precision of the internal format: 'auto', 'float', 'half', 'byte'.

    Returns [Precision, number, number]

    tuple of query, type, and internal format index to reduce tuple return logic (see switch)