Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "target"

Index

Variables

Const PRELUDE

PRELUDE: string = ["float","int","uint","vec2","vec3","vec4","bvec2","bvec3","bvec4","ivec2","ivec3","ivec4","uvec2","uvec3","uvec4","mat2","mat3","mat4","sampler2D","sampler3D","samplerCube","sampler2DShadow","samplerCubeShadow",].map((x) => `const ${x} = env.${x};`).join("\n")

Const RE_SEMI

RE_SEMI: RegExp = /[};]$/

Functions

Const buildComments

  • buildComments(t: Func<any>): string

Const buildExports

  • buildExports(tree: Term<any>): string

Const isIntOrBool

  • isIntOrBool(l: Term<any>): boolean

Const isVecOrMat

  • isVecOrMat(l: Term<any>): boolean

Const swizzle

  • swizzle(id: string): string

Const targetJS

Object literals

Const CMP_OPS

CMP_OPS: object

!

!: string = "not"

!=

!=: string = "neq"

<

<: string = "lt"

<=

<=: string = "lte"

==

==: string = "eq"

>

>: string = "gt"

>=

>=: string = "gte"

Const COMPS

COMPS: object

w

w: number = 3

x

x: number = 0

y

y: number = 1

z

z: number = 2

Const OP_IDS

OP_IDS: object

%

%: string = "modi"

&

&: string = "bitand"

&&

&&: string = "and"

*

*: string = "mul"

+

+: string = "add"

++

++: string = "inc"

-

-: string = "sub"

--

--: string = "dec"

/

/: string = "div"

<<

<<: string = "lshift"

>>

>>: string = "rshift"

^

^: string = "bitxor"

|

|: string = "bitor"

||

||: string = "or"

~

~: string = "bitnot"

Generated using TypeDoc