Cocos Creator
Manual
API Ref
Cocos2d-x
Manual
API Ref
Version: 3.2
Version: 3.5
Version: 3.4
Version: 3.3
Version: 3.1
Version: 3.0
Version: 2.4
Version: 2.3
Version: 2.2
Version: 2.1
Version: 2.0
Version: 1.10
Version: 1.9
Search
Preparing search index...
The search index is not available
CocosCreatorAPI
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
gfx
ShaderInfo
Class ShaderInfo
Hierarchy
ShaderInfo
Index
Constructors
constructor
Properties
_token
attributes
blocks
name
samplers
stages
Constructors
constructor
new
Shader
Info
(
name
?:
string
, stages
?:
ShaderStage
[]
, attributes
?:
Attribute
[]
, blocks
?:
UniformBlock
[]
, samplers
?:
UniformSampler
[]
)
:
ShaderInfo
Parameters
Default value
name:
string
= ""
Default value
stages:
ShaderStage
[]
= []
Default value
attributes:
Attribute
[]
= []
Default value
blocks:
UniformBlock
[]
= []
Default value
samplers:
UniformSampler
[]
= []
Returns
ShaderInfo
Properties
Private
_token
_token
:
never
attributes
attributes
:
Attribute
[]
blocks
blocks
:
UniformBlock
[]
name
name
:
string
samplers
samplers
:
UniformSampler
[]
stages
stages
:
ShaderStage
[]
Globals
gfx
Shader
Info
constructor
_token
attributes
blocks
name
samplers
stages
Generated using
TypeDoc