Package | away3d.materials.utils |
Class | public class ShaderRegisterCache |
Property | Defined by | ||
---|---|---|---|
fragmentOutputRegister : ShaderRegisterElement
[read-only]
The fragment output register.
| ShaderRegisterCache | ||
fragmentsConstantCount : uint [read-only]
The amount of used fragment constant registers.
| ShaderRegisterCache | ||
numUsedStreams : uint [read-only]
The amount of used vertex streams.
| ShaderRegisterCache | ||
numUsedVertexConstants : uint [read-only]
The amount of used vertex constant registers.
| ShaderRegisterCache | ||
vertexAttributeCount : uint [read-only]
The amount of used vertex attribute registers.
| ShaderRegisterCache | ||
vertexAttributesOffset : uint
Indicates the start index from which to retrieve vertex attributes.
| ShaderRegisterCache | ||
vertexConstantCount : uint [read-only]
The amount of used vertex constant registers.
| ShaderRegisterCache | ||
vertexConstantOffset : uint
Indicates the start index from which to retrieve vertex constants.
| ShaderRegisterCache |
Method | Defined by | ||
---|---|---|---|
Create a new ShaderRegisterCache object.
| ShaderRegisterCache | ||
Marks a fragment temporary register as used, so it cannot be retrieved.
| ShaderRegisterCache | ||
Marks a vertex temporary register as used, so it cannot be retrieved.
| ShaderRegisterCache | ||
Retrieve an available fragment constant register
| ShaderRegisterCache | ||
Retrieve a single component from a fragment temporary register that's still available.
| ShaderRegisterCache | ||
Retrieve an entire fragment temporary register that's still available.
| ShaderRegisterCache | ||
Retrieve an available texture register
| ShaderRegisterCache | ||
Retrieve an available varying register
| ShaderRegisterCache | ||
Retrieve an available vertex attribute register
| ShaderRegisterCache | ||
Retrieve an available vertex constant register
| ShaderRegisterCache | ||
Retrieve a single component from a vertex temporary register that's still available.
| ShaderRegisterCache | ||
Retrieve an entire vertex temporary register that's still available.
| ShaderRegisterCache | ||
Removes a usage from a fragment temporary register.
| ShaderRegisterCache | ||
Removes a usage from a vertex temporary register.
| ShaderRegisterCache | ||
reset():void
Resets all registers.
| ShaderRegisterCache |
fragmentOutputRegister | property |
fragmentOutputRegister:ShaderRegisterElement
[read-only]The fragment output register.
Implementation public function get fragmentOutputRegister():ShaderRegisterElement
fragmentsConstantCount | property |
fragmentsConstantCount:uint
[read-only]The amount of used fragment constant registers.
Implementation public function get fragmentsConstantCount():uint
numUsedStreams | property |
numUsedStreams:uint
[read-only]The amount of used vertex streams.
Implementation public function get numUsedStreams():uint
numUsedVertexConstants | property |
numUsedVertexConstants:uint
[read-only]The amount of used vertex constant registers.
Implementation public function get numUsedVertexConstants():uint
vertexAttributeCount | property |
vertexAttributeCount:uint
[read-only]The amount of used vertex attribute registers.
Implementation public function get vertexAttributeCount():uint
vertexAttributesOffset | property |
vertexAttributesOffset:uint
[read-write]Indicates the start index from which to retrieve vertex attributes.
Implementation public function get vertexAttributesOffset():uint
public function set vertexAttributesOffset(value:uint):void
vertexConstantCount | property |
vertexConstantCount:uint
[read-only]The amount of used vertex constant registers.
Implementation public function get vertexConstantCount():uint
vertexConstantOffset | property |
vertexConstantOffset:uint
[read-write]Indicates the start index from which to retrieve vertex constants.
Implementation public function get vertexConstantOffset():uint
public function set vertexConstantOffset(value:uint):void
ShaderRegisterCache | () | constructor |
public function ShaderRegisterCache()
Init Parameters
addFragmentTempUsages | () | method |
public function addFragmentTempUsages(register:ShaderRegisterElement, usageCount:uint):void
Marks a fragment temporary register as used, so it cannot be retrieved.
Parametersregister:ShaderRegisterElement — The register to mark as used.
|
|
usageCount:uint — The amount of usages to add.
|
addVertexTempUsages | () | method |
public function addVertexTempUsages(register:ShaderRegisterElement, usageCount:uint):void
Marks a vertex temporary register as used, so it cannot be retrieved.
Parametersregister:ShaderRegisterElement — The register to mark as used.
|
|
usageCount:uint — The amount of usages to add.
|
getFreeFragmentConstant | () | method |
public function getFreeFragmentConstant():ShaderRegisterElement
Retrieve an available fragment constant register
ReturnsShaderRegisterElement |
getFreeFragmentSingleTemp | () | method |
public function getFreeFragmentSingleTemp():ShaderRegisterElement
Retrieve a single component from a fragment temporary register that's still available.
ReturnsShaderRegisterElement |
getFreeFragmentVectorTemp | () | method |
public function getFreeFragmentVectorTemp():ShaderRegisterElement
Retrieve an entire fragment temporary register that's still available.
ReturnsShaderRegisterElement |
getFreeTextureReg | () | method |
public function getFreeTextureReg():ShaderRegisterElement
Retrieve an available texture register
ReturnsShaderRegisterElement |
getFreeVarying | () | method |
public function getFreeVarying():ShaderRegisterElement
Retrieve an available varying register
ReturnsShaderRegisterElement |
getFreeVertexAttribute | () | method |
public function getFreeVertexAttribute():ShaderRegisterElement
Retrieve an available vertex attribute register
ReturnsShaderRegisterElement |
getFreeVertexConstant | () | method |
public function getFreeVertexConstant():ShaderRegisterElement
Retrieve an available vertex constant register
ReturnsShaderRegisterElement |
getFreeVertexSingleTemp | () | method |
public function getFreeVertexSingleTemp():ShaderRegisterElement
Retrieve a single component from a vertex temporary register that's still available.
ReturnsShaderRegisterElement |
getFreeVertexVectorTemp | () | method |
public function getFreeVertexVectorTemp():ShaderRegisterElement
Retrieve an entire vertex temporary register that's still available.
ReturnsShaderRegisterElement |
removeFragmentTempUsage | () | method |
public function removeFragmentTempUsage(register:ShaderRegisterElement):void
Removes a usage from a fragment temporary register. When usages reach 0, the register is freed again.
Parametersregister:ShaderRegisterElement — The register for which to remove a usage.
|
removeVertexTempUsage | () | method |
public function removeVertexTempUsage(register:ShaderRegisterElement):void
Removes a usage from a vertex temporary register. When usages reach 0, the register is freed again.
Parametersregister:ShaderRegisterElement — The register for which to remove a usage.
|
reset | () | method |
public function reset():void
Resets all registers.