Index
Classes
Shader
Variables
ERROR_
REGEXP
Functions
compile
Extension
Pragma
compile
Shader
compile
Vars
def
Shader
init
Attributes
init
Shader
Extensions
init
Uniforms
parse
And
Throw
Shader
Error
prepare
Shader
Source
shader
Source
FromAST
varying
Opts
Variables
Const
ERROR_
REGEXP
ERROR_
REGEXP
:
RegExp
= /ERROR: \d+:(\d+): (.*)/
Functions
Const
compile
Extension
Pragma
compile
Extension
Pragma
(
id
:
string
, behavior
:
ExtensionBehavior
, version
:
GLSLVersion
)
:
string
Parameters
id:
string
behavior:
ExtensionBehavior
version:
GLSLVersion
Returns
string
Const
compile
Shader
compile
Shader
(
gl
:
WebGLRenderingContext
, type
:
GLenum
, src
:
string
)
:
WebGLShader
Parameters
gl:
WebGLRenderingContext
type:
GLenum
src:
string
Returns
WebGLShader
Const
compile
Vars
compile
Vars
(
attribs
:
any
, syntax
:
Fn3
<
string
,
any
,
GLSLDeclPrefixes
,
string
>
, prefixes
:
GLSLDeclPrefixes
)
:
string
Parameters
attribs:
any
syntax:
Fn3
<
string
,
any
,
GLSLDeclPrefixes
,
string
>
prefixes:
GLSLDeclPrefixes
Returns
string
Const
def
Shader
def
Shader
(
gl
:
WebGLRenderingContext
, spec
:
ShaderSpec
)
:
Shader
Parameters
gl:
WebGLRenderingContext
spec:
ShaderSpec
Returns
Shader
Const
init
Attributes
init
Attributes
(
gl
:
WebGLRenderingContext
, prog
:
WebGLProgram
, attribs
:
ShaderAttribSpecs
)
:
IObjectOf
<
ShaderAttrib
>
Parameters
gl:
WebGLRenderingContext
prog:
WebGLProgram
attribs:
ShaderAttribSpecs
Returns
IObjectOf
<
ShaderAttrib
>
Const
init
Shader
Extensions
init
Shader
Extensions
(
gl
:
WebGLRenderingContext
, exts
:
ExtensionBehaviors
|
undefined
)
:
void
Parameters
gl:
WebGLRenderingContext
exts:
ExtensionBehaviors
|
undefined
Returns
void
Const
init
Uniforms
init
Uniforms
(
gl
:
WebGLRenderingContext
, prog
:
WebGLProgram
, uniforms
?:
ShaderUniformSpecs
)
:
IObjectOf
<
ShaderUniform
>
Parameters
gl:
WebGLRenderingContext
prog:
WebGLProgram
Default value
uniforms:
ShaderUniformSpecs
= {}
Returns
IObjectOf
<
ShaderUniform
>
Const
parse
And
Throw
Shader
Error
parse
And
Throw
Shader
Error
(
gl
:
WebGLRenderingContext
, shader
:
WebGLShader
, src
:
string
)
:
never
Parameters
gl:
WebGLRenderingContext
shader:
WebGLShader
src:
string
Returns
never
Const
prepare
Shader
Source
prepare
Shader
Source
(
spec
:
ShaderSpec
, type
:
ShaderType
, version
:
GLSLVersion
)
:
string
Parameters
spec:
ShaderSpec
type:
ShaderType
version:
GLSLVersion
Returns
string
Const
shader
Source
FromAST
shader
Source
FromAST
(
spec
:
ShaderSpec
, type
:
ShaderType
, version
:
GLSLVersion
)
:
string
Parameters
spec:
ShaderSpec
type:
ShaderType
version:
GLSLVersion
Returns
string
Const
varying
Opts
varying
Opts
(
v
:
ShaderVaryingSpec
)
:
[
GLSL
,
SymOpts
]
Parameters
v:
ShaderVaryingSpec
Returns
[
GLSL
,
SymOpts
]
Globals
"shader"
Shader
ERROR_
REGEXP
compile
Extension
Pragma
compile
Shader
compile
Vars
def
Shader
init
Attributes
init
Shader
Extensions
init
Uniforms
parse
And
Throw
Shader
Error
prepare
Shader
Source
shader
Source
FromAST
varying
Opts
Generated using
TypeDoc