Cocos Creator
手册文档
API 参考
Cocos Creator 3D
手册文档
API 参考
Cocos2d-x
手册文档
API 参考
AnySDK
Version: 1.1
Version: 1.0
Version: 1.2
Search
Preparing search index...
The search index is not available
Creator3dAPI
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
material
External module material
Index
Classes
Effect
Asset
Material
Material
Instance
Pass
Pass
Instance
Program
Lib
Interfaces
IAttribute
Info
IBlock
IBlock
Info
IBlock
InfoRT
IBuiltin
IBuiltin
Info
IDefine
Info
IDefine
Map
IDefine
Record
IMacro
Info
IMacro
Patch
IMaterial
Info
IMaterial
Instance
Info
IPSOHash
Info
IPass
Dynamics
IPass
Info
IPass
Info
Full
IPass
Resources
IPass
States
IPre
Compile
Info
IProgram
Info
IProperty
Info
ISampler
Info
ISampler
InfoRT
IShader
Info
IShader
Resources
ITechnique
Info
Type aliases
Material
Property
Material
Property
Full
Pass
Overrides
Variables
binding
Mask
bt
Mask
default
Values
effects
offset
Mask
program
Lib
type
Mask
Functions
assign
Defines
customize
Type
dependency
Check
gen
Handle
gen
Handles
get
Binding
From
Handle
get
Binding
Type
From
Handle
get
Bit
Count
get
Default
From
Type
get
Offset
From
Handle
get
Shader
Bindings
get
Shader
Instance
Name
get
Size
get
Type
From
Handle
insert
Builtin
Bindings
map
Define
prepare
Defines
serialize
Blend
State
serialize
Depth
Stencil
State
serialize
Rasterizer
State
Object literals
bf
Info
bl
Info
pl
Info
pso
Info
type2reader
type2writer
Type aliases
Material
Property
Material
Property
:
number
|
Vec2
|
Vec3
|
Vec4
|
Color
|
Mat3
|
Mat4
|
Quat
Material
Property
Full
Material
Property
Full
:
MaterialProperty
|
TextureBase
|
SpriteFrame
|
GFXTextureView
|
null
Pass
Overrides
Pass
Overrides
:
RecursivePartial
<
IPassStates
>
Variables
Const
binding
Mask
binding
Mask
:
4177920
= 4177920
Const
bt
Mask
bt
Mask
:
4026531840
= 4026531840
Const
default
Values
default
Values
:
ReadonlyArray
<
number
>
[]
= [Object.freeze([0]),Object.freeze([0, 0]),Object.freeze([0, 0, 0, 0]),Object.freeze([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]),]
Const
effects
effects
:
Record
<
string
,
EffectAsset
>
Const
offset
Mask
offset
Mask
:
16383
= 16383
Const
program
Lib
program
Lib
:
ProgramLib
= new ProgramLib()
Const
type
Mask
type
Mask
:
264241152
= 264241152
Functions
assign
Defines
assign
Defines
(
target
:
IDefineMap
, source
:
IDefineMap
)
:
boolean
Parameters
target:
IDefineMap
source:
IDefineMap
Returns
boolean
Const
customize
Type
customize
Type
(
handle
:
number
, type
:
GFXType
)
:
number
Parameters
handle:
number
type:
GFXType
Returns
number
dependency
Check
dependency
Check
(
dependencies
:
string
[]
, defines
:
IDefineMap
)
:
boolean
Parameters
dependencies:
string
[]
defines:
IDefineMap
Returns
boolean
Const
gen
Handle
gen
Handle
(
bt
:
GFXBindingType
, binding
:
number
, type
:
GFXType
, offset
?:
number
)
:
number
Parameters
bt:
GFXBindingType
binding:
number
type:
GFXType
Default value
offset:
number
= 0
Returns
number
gen
Handles
gen
Handles
(
tmpl
:
IProgramInfo
)
:
object
Parameters
tmpl:
IProgramInfo
Returns
object
Const
get
Binding
From
Handle
get
Binding
From
Handle
(
handle
:
number
)
:
number
Parameters
handle:
number
Returns
number
Const
get
Binding
Type
From
Handle
get
Binding
Type
From
Handle
(
handle
:
number
)
:
number
Parameters
handle:
number
Returns
number
get
Bit
Count
get
Bit
Count
(
cnt
:
number
)
:
number
Parameters
cnt:
number
Returns
number
get
Default
From
Type
get
Default
From
Type
(
type
:
GFXType
)
:
ReadonlyArray
<
number
>
|
"default-texture"
|
"default-cube-texture"
Parameters
type:
GFXType
Returns
ReadonlyArray
<
number
>
|
"default-texture"
|
"default-cube-texture"
Const
get
Offset
From
Handle
get
Offset
From
Handle
(
handle
:
number
)
:
number
Parameters
handle:
number
Returns
number
get
Shader
Bindings
get
Shader
Bindings
(
tmpl
:
IProgramInfo
, defines
:
IDefineMap
, outBlocks
:
IBlockInfoRT
[]
, outSamplers
:
ISamplerInfoRT
[]
, bindings
:
IGFXBinding
[]
, outAttributes
:
IGFXAttribute
[]
)
:
void
Parameters
tmpl:
IProgramInfo
defines:
IDefineMap
outBlocks:
IBlockInfoRT
[]
outSamplers:
ISamplerInfoRT
[]
bindings:
IGFXBinding
[]
outAttributes:
IGFXAttribute
[]
Returns
void
get
Shader
Instance
Name
get
Shader
Instance
Name
(
name
:
string
, macros
:
IMacroInfo
[]
)
:
string
Parameters
name:
string
macros:
IMacroInfo
[]
Returns
string
get
Size
get
Size
(
block
:
GFXUniformBlock
)
:
number
Parameters
block:
GFXUniformBlock
Returns
number
Const
get
Type
From
Handle
get
Type
From
Handle
(
handle
:
number
)
:
number
Parameters
handle:
number
Returns
number
insert
Builtin
Bindings
insert
Builtin
Bindings
(
tmpl
:
IProgramInfo
, source
:
Map
<
string
,
IInternalBindingDesc
>
, type
:
string
)
:
void
Parameters
tmpl:
IProgramInfo
source:
Map
<
string
,
IInternalBindingDesc
>
type:
string
Returns
void
map
Define
map
Define
(
info
:
IDefineInfo
, def
:
number
|
string
|
boolean
)
:
string
Parameters
info:
IDefineInfo
def:
number
|
string
|
boolean
Returns
string
prepare
Defines
prepare
Defines
(
defs
:
IDefineMap
, tDefs
:
IDefineInfo
[]
)
:
IMacroInfo
[]
Parameters
defs:
IDefineMap
tDefs:
IDefineInfo
[]
Returns
IMacroInfo
[]
serialize
Blend
State
serialize
Blend
State
(
bs
:
GFXBlendState
)
:
string
Parameters
bs:
GFXBlendState
Returns
string
serialize
Depth
Stencil
State
serialize
Depth
Stencil
State
(
dss
:
GFXDepthStencilState
)
:
string
Parameters
dss:
GFXDepthStencilState
Returns
string
serialize
Rasterizer
State
serialize
Rasterizer
State
(
rs
:
GFXRasterizerState
)
:
string
Parameters
rs:
GFXRasterizerState
Returns
string
Object literals
Const
bf
Info
bf
Info
:
object
mem
Usage
mem
Usage
:
number
= GFXMemoryUsageBit.HOST | GFXMemoryUsageBit.DEVICE
size
size
:
number
= 0
usage
usage
:
number
= GFXBufferUsageBit.UNIFORM | GFXBufferUsageBit.TRANSFER_DST
Const
bl
Info
bl
Info
:
object
bindings
bindings
:
never
= null!
Const
pl
Info
pl
Info
:
object
layouts
layouts
:
never
= null!
Const
pso
Info
pso
Info
:
object
blend
State
blend
State
:
never
= null!
defines
defines
:
never
= null!
depth
Stencil
State
depth
Stencil
State
:
never
= null!
dynamic
States
dynamic
States
:
never
= null!
hash
hash
:
number
= 0
input
State
input
State
:
never
= null!
layout
layout
:
never
= null!
primitive
primitive
:
0
= 0
program
program
:
string
= ""
rasterizer
State
rasterizer
State
:
never
= null!
render
Pass
render
Pass
:
never
= null!
shader
shader
:
never
= null!
stage
stage
:
0
= 0
Const
type2reader
type2reader
:
object
computed
computed
(
a
:
Float32Array
, v
:
any
, idx
?:
number
)
:
void
computed
(
a
:
Float32Array
, v
:
any
, idx
?:
number
)
:
number
computed
(
a
:
Float32Array
, v
:
any
, idx
?:
number
)
:
any
computed
(
a
:
Float32Array
, v
:
any
, idx
?:
number
)
:
any
computed
(
a
:
Float32Array
, v
:
any
, idx
?:
number
)
:
any
computed
(
a
:
Float32Array
, v
:
any
, idx
?:
number
)
:
number
computed
(
a
:
Float32Array
, v
:
any
, idx
?:
number
)
:
any
computed
(
a
:
Float32Array
, v
:
any
, idx
?:
number
)
:
any
computed
(
a
:
Float32Array
, v
:
any
, idx
?:
number
)
:
any
computed
(
a
:
Float32Array
, v
:
any
, idx
?:
number
)
:
any
computed
(
a
:
Float32Array
, v
:
any
, idx
?:
number
)
:
any
Parameters
a:
Float32Array
v:
any
Default value
idx:
number
= 0
Returns
void
Parameters
a:
Float32Array
v:
any
Default value
idx:
number
= 0
Returns
number
Parameters
a:
Float32Array
v:
any
Default value
idx:
number
= 0
Returns
any
Parameters
a:
Float32Array
v:
any
Default value
idx:
number
= 0
Returns
any
Parameters
a:
Float32Array
v:
any
Default value
idx:
number
= 0
Returns
any
Parameters
a:
Float32Array
v:
any
Default value
idx:
number
= 0
Returns
number
Parameters
a:
Float32Array
v:
any
Default value
idx:
number
= 0
Returns
any
Parameters
a:
Float32Array
v:
any
Default value
idx:
number
= 0
Returns
any
Parameters
a:
Float32Array
v:
any
Default value
idx:
number
= 0
Returns
any
Parameters
a:
Float32Array
v:
any
Default value
idx:
number
= 0
Returns
any
Parameters
a:
Float32Array
v:
any
Default value
idx:
number
= 0
Returns
any
Const
type2writer
type2writer
:
object
computed
computed
(
a
:
Float32Array
, v
:
any
, idx
?:
number
)
:
void
computed
(
a
:
Float32Array
, v
:
any
, idx
?:
number
)
:
any
computed
(
a
:
Float32Array
, v
:
any
, idx
?:
number
)
:
Float32Array
computed
(
a
:
Float32Array
, v
:
any
, idx
?:
number
)
:
Float32Array
computed
(
a
:
Float32Array
, v
:
any
, idx
?:
number
)
:
Float32Array
computed
(
a
:
Float32Array
, v
:
any
, idx
?:
number
)
:
any
computed
(
a
:
Float32Array
, v
:
any
, idx
?:
number
)
:
Float32Array
computed
(
a
:
Float32Array
, v
:
any
, idx
?:
number
)
:
Float32Array
computed
(
a
:
Float32Array
, v
:
any
, idx
?:
number
)
:
Float32Array
computed
(
a
:
Float32Array
, v
:
any
, idx
?:
number
)
:
Float32Array
computed
(
a
:
Float32Array
, v
:
any
, idx
?:
number
)
:
Float32Array
Parameters
a:
Float32Array
v:
any
Default value
idx:
number
= 0
Returns
void
Parameters
a:
Float32Array
v:
any
Default value
idx:
number
= 0
Returns
any
Parameters
a:
Float32Array
v:
any
Default value
idx:
number
= 0
Returns
Float32Array
Parameters
a:
Float32Array
v:
any
Default value
idx:
number
= 0
Returns
Float32Array
Parameters
a:
Float32Array
v:
any
Default value
idx:
number
= 0
Returns
Float32Array
Parameters
a:
Float32Array
v:
any
Default value
idx:
number
= 0
Returns
any
Parameters
a:
Float32Array
v:
any
Default value
idx:
number
= 0
Returns
Float32Array
Parameters
a:
Float32Array
v:
any
Default value
idx:
number
= 0
Returns
Float32Array
Parameters
a:
Float32Array
v:
any
Default value
idx:
number
= 0
Returns
Float32Array
Parameters
a:
Float32Array
v:
any
Default value
idx:
number
= 0
Returns
Float32Array
Parameters
a:
Float32Array
v:
any
Default value
idx:
number
= 0
Returns
Float32Array
Globals
material
Effect
Asset
Material
Material
Instance
Pass
Pass
Instance
Program
Lib
IAttribute
Info
IBlock
IBlock
Info
IBlock
InfoRT
IBuiltin
IBuiltin
Info
IDefine
Info
IDefine
Map
IDefine
Record
IMacro
Info
IMacro
Patch
IMaterial
Info
IMaterial
Instance
Info
IPSOHash
Info
IPass
Dynamics
IPass
Info
IPass
Info
Full
IPass
Resources
IPass
States
IPre
Compile
Info
IProgram
Info
IProperty
Info
ISampler
Info
ISampler
InfoRT
IShader
Info
IShader
Resources
ITechnique
Info
Material
Property
Material
Property
Full
Pass
Overrides
binding
Mask
bt
Mask
default
Values
effects
offset
Mask
program
Lib
type
Mask
assign
Defines
customize
Type
dependency
Check
gen
Handle
gen
Handles
get
Binding
From
Handle
get
Binding
Type
From
Handle
get
Bit
Count
get
Default
From
Type
get
Offset
From
Handle
get
Shader
Bindings
get
Shader
Instance
Name
get
Size
get
Type
From
Handle
insert
Builtin
Bindings
map
Define
prepare
Defines
serialize
Blend
State
serialize
Depth
Stencil
State
serialize
Rasterizer
State
bf
Info
bl
Info
pl
Info
pso
Info
type2reader
type2writer
Generated using
TypeDoc