Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "convert"

Index

Functions

Const asGLType

  • asGLType(type: GLType | Type): GLType

Const asNativeType

  • asNativeType(type: GLType | Type): Type
  • Returns canonical {@link @thi.ng/api#Type} value of type by first attempting to resolve it as {@link @thi.ng/api#GLType} enum.

    example
    nativeType(GLType.F32) => Type.F32
    nativeType(Type.F32) => Type.F32

    Parameters

    • type: GLType | Type

      -

    Returns Type

Generated using TypeDoc