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
gfx
GFXShader
Class GFXShader
GFX 着色器。
Hierarchy
GFXObject
GFXShader
Index
Constructors
constructor
Properties
_blocks
_device
_gfx
Type
_id
_name
_samplers
_stages
_status
Accessors
gfx
Type
id
name
status
Methods
destroy
initialize
Constructors
constructor
newGFXShader
(
device
:
GFXDevice
)
:
GFXShader
Parameters
device:
GFXDevice
Returns
GFXShader
Properties
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
:
IGFXShaderStage
[]
= []
Protected
_status
_status
:
GFXStatus
= GFXStatus.UNREADY
Accessors
gfx
Type
get
gfxType
(
)
:
GFXObjectType
Returns
GFXObjectType
id
get
id
(
)
:
number
着色器 id。
Returns
number
name
get
name
(
)
:
string
着色器名称。
Returns
string
status
get
status
(
)
:
GFXStatus
Returns
GFXStatus
Methods
Abstract
destroy
destroy
(
)
:
void
Returns
void
Abstract
initialize
initialize
(
info
:
IGFXShaderInfo
)
:
boolean
Parameters
info:
IGFXShaderInfo
Returns
boolean
Globals
gfx
GFXShader
constructor
_blocks
_device
_gfx
Type
_id
_name
_samplers
_stages
_status
gfx
Type
id
name
status
destroy
initialize
Generated using
TypeDoc
GFX 着色器。