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

Enumerations

Methods

Methods

Static queryInternalTextureFormat

  • queryInternalTextureFormat(context: Context, target: GLenum, precision: Precision | undefined): [GLenum, GLenum, Precision]
  • 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: GLenum

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

    • precision: Precision | undefined

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

    Returns [GLenum, GLenum, 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.