Packagelaya.d3.graphics
Classpublic class VertexDeclaration
InheritanceVertexDeclaration Inheritance Object

...



Public Properties
 PropertyDefined By
  _conchVertexDeclaration : *
VertexDeclaration
  id : int
[read-only] 获取唯一标识ID(通常用于优化或识别)。
VertexDeclaration
  shaderDefineValue : int
[read-only]
VertexDeclaration
  shaderValues : ValusArray
[read-only]
VertexDeclaration
  vertexStride : int
[read-only]
VertexDeclaration
Public Methods
 MethodDefined By
  
VertexDeclaration(vertexStride:int, vertexElements:Array)
VertexDeclaration
  
_addShaderDefine(value:int):void
增加Shader宏定义。
VertexDeclaration
  
VertexDeclaration
  
VertexDeclaration
  
getVertexStride(vertexElements:Array):int
[static]
VertexDeclaration
  
unBinding():void
VertexDeclaration
Protected Methods
 MethodDefined By
  
_removeShaderDefine(value:int):void
移除Shader宏定义。
VertexDeclaration
Public Constants
 ConstantDefined By
  maxVertexDeclaration : int
[static]
VertexDeclaration
  _maxVertexDeclarationBit : int = 1000
[static]
VertexDeclaration
Property Detail
_conchVertexDeclarationproperty
public var _conchVertexDeclaration:*

idproperty 
id:int  [read-only]

获取唯一标识ID(通常用于优化或识别)。


Implementation
    public function get id():int
shaderDefineValueproperty 
shaderDefineValue:int  [read-only]


Implementation
    public function get shaderDefineValue():int
shaderValuesproperty 
shaderValues:ValusArray  [read-only]


Implementation
    public function get shaderValues():ValusArray
vertexStrideproperty 
vertexStride:int  [read-only]


Implementation
    public function get vertexStride():int
Constructor Detail
VertexDeclaration()Constructor
public function VertexDeclaration(vertexStride:int, vertexElements:Array)



Parameters
vertexStride:int
 
vertexElements:Array
Method Detail
_addShaderDefine()method
public function _addShaderDefine(value:int):void

增加Shader宏定义。

Parameters

value:int — 宏定义。

_removeShaderDefine()method 
protected function _removeShaderDefine(value:int):void

移除Shader宏定义。

Parameters

value:int — 宏定义。

getVertexElementByUsage()method 
public function getVertexElementByUsage(usage:int):VertexElement

Parameters

usage:int

Returns
VertexElement
getVertexElements()method 
public function getVertexElements():Array

Returns
Array
getVertexStride()method 
public static function getVertexStride(vertexElements:Array):int

Parameters

vertexElements:Array

Returns
int
unBinding()method 
public function unBinding():void

Constant Detail
_maxVertexDeclarationBitConstant
public static const _maxVertexDeclarationBit:int = 1000

maxVertexDeclarationConstant 
public static const maxVertexDeclaration:int