Cocos Creator
手册文档
API 参考
Cocos Creator 3D
手册文档
API 参考
Cocos2d-x
手册文档
API 参考
Version: 1.2
Version: 1.0
Version: 1.1
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
gfx
GFXShader
Class GFXShader
GFX shader.
Hierarchy
GFXObject
GFXShader
Index
Constructors
constructor
Properties
_attributes
_blocks
_device
_gfx
Type
_id
_name
_samplers
_stages
Accessors
attributes
blocks
gfx
Type
id
name
samplers
Methods
destroy
initialize
Constructors
constructor
newGFXShader
(
device
:
GFXDevice
)
:
GFXShader
Parameters
device:
GFXDevice
Returns
GFXShader
Properties
Protected
_attributes
_attributes
:
IGFXAttribute
[]
= []
Protected
_blocks
_blocks
:
GFXUniformBlock
[]
= []
Protected
_device
_device
:
GFXDevice
Protected
_gfx
Type
_gfx
Type
:
GFXObjectType
= GFXObjectType.UNKNOWN
Protected
_id
_id
:
number
Protected
_name
_name
:
string
= ""
Protected
_samplers
_samplers
:
GFXUniformSampler
[]
= []
Protected
_stages
_stages
:
GFXShaderStage
[]
= []
Accessors
attributes
get
attributes
(
)
:
IGFXAttribute
[]
Returns
IGFXAttribute
[]
blocks
get
blocks
(
)
:
GFXUniformBlock
[]
Returns
GFXUniformBlock
[]
gfx
Type
get
gfxType
(
)
:
GFXObjectType
Returns
GFXObjectType
id
get
id
(
)
:
number
Get current shader id.
Returns
number
name
get
name
(
)
:
string
Get current shader name.
Returns
string
samplers
get
samplers
(
)
:
GFXUniformSampler
[]
Returns
GFXUniformSampler
[]
Methods
Abstract
destroy
destroy
(
)
:
void
Returns
void
Abstract
initialize
initialize
(
info
:
GFXShaderInfo
)
:
boolean
Parameters
info:
GFXShaderInfo
Returns
boolean
Globals
gfx
GFXShader
constructor
_attributes
_blocks
_device
_gfx
Type
_id
_name
_samplers
_stages
attributes
blocks
gfx
Type
id
name
samplers
destroy
initialize
Generated using
TypeDoc
GFX shader.