Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "ast/sym"

Index

Functions

Const arraySym

  • arraySym<T>(type: T, id?: undefined | string, opts?: SymOpts, init?: (Lit<T> | Sym<T>)[]): Sym<ArrayTypeMap[T]>
  • Defines a new symbol with optional initial array values.

    Important: Array initializers are UNSUPPORTED in GLSL ES v1 (WebGL), any code using such initializers will only work under WebGL2 or other targets.

    Type parameters

    Parameters

    • type: T
    • Optional id: undefined | string
    • Default value opts: SymOpts = {}
    • Optional init: (Lit<T> | Sym<T>)[]

    Returns Sym<ArrayTypeMap[T]>

Const constSym

  • constSym<T>(type: T, id?: undefined | string, opts?: SymOpts, init?: Term<T>): Sym<T>

Const input

  • input<T>(type: T, id: string, opts?: SymOpts): Sym<T>

Const output

  • output<T>(type: T, id: string, opts?: SymOpts): Sym<T>

sym

Const uniform

  • uniform<T>(type: T, id: string, opts?: SymOpts): Sym<T>

Generated using TypeDoc