Property | Type | Description | |
---|---|---|---|
AutoConstantDictionary | AutoConstantDefinition[] | ||
autoAddParamName | bool | ||
autoConstantList | AutoConstantEntryList | ||
floatConstants | FloatConstantEntryList | ||
ignoreMissingParameters | bool | ||
intConstants | IntConstantEntryList | ||
namedParams | AxiomCollection |
||
paramTypeList | List |
||
tmpVals | float[] | ||
transposeMatrices | bool |
Property | Type | Description | |
---|---|---|---|
SetLogicalIndexes | void |
Method | Description | |
---|---|---|
AddParameterToDefaultsList ( GpuProgramParameterType type, string name ) : void | ||
ClearAutoConstantType ( ) : void |
Clears all the existing automatic constants.
|
|
Clone ( ) : |
||
CopyConstantsFrom ( |
Copies the values of all constants (including auto constants) from another GpuProgramParameters object.
|
|
CopyMatchingNamedConstantsFrom ( |
||
FindNamedConstantDefinition ( string name, bool throwExceptionIfNotFound ) : GpuConstantDefinition |
Find a constant definition for a named parameter.
|
|
GetAutoConstantDefinition ( int idx, AutoConstantDefinition &def ) : bool |
gets the auto constant definition using an index into the auto constant definition array. If the index is out of bounds then false is returned;
|
|
GetAutoConstantDefinition ( string name, AutoConstantDefinition &def ) : bool |
Gets the auto constant definition associated with name if found else returns false
|
|
GetFloatConstant ( int i ) : FloatConstantEntry |
|
|
GetFloatPointer ( int physicalIndex ) : float[] | ||
GetIntConstant ( int i ) : IntConstantEntry |
|
|
GetIntPointer ( int physicalIndex ) : int[] | ||
GetNameByIndex ( int index ) : string |
Given an index, this function will return the name of the parameter at that index.
|
|
GetNamedFloatConstant ( string name ) : FloatConstantEntry |
Gets a Named Float Constant entry if the name is found otherwise returns a null.
|
|
GetNamedIntConstant ( string name ) : IntConstantEntry |
Gets a Named Int Constant entry if the name is found otherwise returns a null.
|
|
GetParamIndex ( string name ) : int |
Gets the constant index of the specified named param.
|
|
GpuProgramParameters ( ) : System |
Default constructor.
|
|
IncPassIterationNumber ( ) : void | ||
MapParamNameToIndex ( string name, int index ) : void |
Maps a parameter name to the specified constant index.
|
|
SetAutoConstant ( AutoConstantEntry entry ) : void |
Overloaded method.
|
|
SetAutoConstant ( int index, AutoConstantType type ) : void |
Sets up a constant which will automatically be updated by the engine. Vertex and fragment programs often need parameters which are to do with the current render state, or particular values which may very well change over time, and often between objects which are being rendered. This feature allows you to set up a certain number of predefined parameter mappings that are kept up to date for you. |
|
SetAutoConstant ( int index, AutoConstantType type, float extraInfo ) : void |
Overloaded method.
|
|
SetAutoConstant ( int index, AutoConstantType type, int extraInfo ) : void |
Overloaded method.
|
|
SetConstant ( int index, |
Sends 4 packed floating-point RGBA color values to the program.
|
|
SetConstant ( int index, |
Sends a multiple value constant floating-point parameter to the program. This method is made virtual to allow GpuProgramManagers, or even individual GpuProgram implementations to supply their own implementation if need be. An example would be where a Matrix needs to be transposed to row-major format before passing to the hardware. |
|
SetConstant ( int index, |
Sends a multiple matrix values to the program.
|
|
SetConstant ( int index, Vector3 val ) : void |
Sends 3 packed floating-point values to the program.
|
|
SetConstant ( int index, Vector4 val ) : void |
Sends 4 packed floating-point values to the program.
|
|
SetConstant ( int index, float value ) : void |
Provides a way to pass in a single float
|
|
SetConstant ( int index, float f0, float f1, float f2, float f3 ) : void |
Optimize the most common case of setting constant consisting of four floats
|
|
SetConstant ( int index, int ints ) : void |
Sets an array of int values starting at the specified index.
|
|
SetConstantFromTime ( int index, float factor ) : void |
|
|
SetIntConstant ( int index, int value ) : void |
Provides a way to pass in the technique pass number
|
|
SetNamedAutoConstant ( string name, AutoConstantType type ) : void | ||
SetNamedAutoConstant ( string name, AutoConstantType type, int extraInfo ) : void |
Sets up a constant which will automatically be updated by the engine. Vertex and fragment programs often need parameters which are to do with the current render state, or particular values which may very well change over time, and often between objects which are being rendered. This feature allows you to set up a certain number of predefined parameter mappings that are kept up to date for you. |
|
SetNamedConstant ( string name, |
Sends 4 packed floating-point RGBA color values to the program.
|
|
SetNamedConstant ( string name, |
Sends a multiple value constant floating-point parameter to the program.
|
|
SetNamedConstant ( string name, |
Sends multiple matrices into a program.
|
|
SetNamedConstant ( string name, Vector3 val ) : void |
Sends 3 packed floating-point values to the program.
|
|
SetNamedConstant ( string name, Vector4 val ) : void |
Sends 4 packed floating-point values to the program.
|
|
SetNamedConstant ( string name, float val ) : void | ||
SetNamedConstant ( string name, int val ) : void | ||
SetNamedConstantFromTime ( string name, float factor ) : void |
|
|
SetNamedConstants ( GpuNamedConstants constantDefs ) : void | ||
UpdateAutoParams ( |
Update automatic parameters.
|
|
UpdateAutoParamsLightsOnly ( |
Updates the automatic light parameters based on the details provided.
|
|
UpdateAutoParamsNoLights ( |
Updates the automatic parameters (except lights) based on the details provided.
|
Method | Description | |
---|---|---|
SetLogicalIndexes ( GpuLogicalBufferStruct floatIndexMap, GpuLogicalBufferStruct intIndexMap ) : void |
public AddParameterToDefaultsList ( GpuProgramParameterType type, string name ) : void | ||
type | GpuProgramParameterType | |
name | string | |
return | void |
public CopyConstantsFrom ( |
||
source | Set of params to use as the source. | |
return | void |
public CopyMatchingNamedConstantsFrom ( |
||
source | ||
return | void |
public FindNamedConstantDefinition ( string name, bool throwExceptionIfNotFound ) : GpuConstantDefinition | ||
name | string | The name to look up |
throwExceptionIfNotFound | bool | |
return | GpuConstantDefinition |
public static GetAutoConstantDefinition ( int idx, AutoConstantDefinition &def ) : bool | ||
idx | int | The auto constant index |
def | AutoConstantDefinition | |
return | bool |
public static GetAutoConstantDefinition ( string name, AutoConstantDefinition &def ) : bool | ||
name | string | The name of the auto constant |
def | AutoConstantDefinition | |
return | bool |
public GetFloatConstant ( int i ) : FloatConstantEntry | ||
i | int | |
return | FloatConstantEntry |
public GetFloatPointer ( int physicalIndex ) : float[] | ||
physicalIndex | int | |
return | float[] |
public GetIntConstant ( int i ) : IntConstantEntry | ||
i | int | |
return | IntConstantEntry |
public GetIntPointer ( int physicalIndex ) : int[] | ||
physicalIndex | int | |
return | int[] |
public GetNameByIndex ( int index ) : string | ||
index | int | Index of the parameter to look up. |
return | string |
public GetNamedFloatConstant ( string name ) : FloatConstantEntry | ||
name | string | Name of the constant to retreive. |
return | FloatConstantEntry |
public GetNamedIntConstant ( string name ) : IntConstantEntry | ||
name | string | Name of the constant to retreive. |
return | IntConstantEntry |
public GetParamIndex ( string name ) : int | ||
name | string | /// Name of the param. /// |
return | int |
public MapParamNameToIndex ( string name, int index ) : void | ||
name | string | Name of the param. |
index | int | Constant index of the param. |
return | void |
public SetAutoConstant ( AutoConstantEntry entry ) : void | ||
entry | AutoConstantEntry | |
return | void |
public SetAutoConstant ( int index, AutoConstantType type ) : void | ||
index | int | /// The location in the constant list to place this updated constant every time /// it is changed. Note that because of the nature of the types, we know how big the /// parameter details will be so you don't need to set that like you do for manual constants. /// |
type | AutoConstantType | The type of automatic constant to set. |
return | void |
public SetAutoConstant ( int index, AutoConstantType type, float extraInfo ) : void | ||
index | int | /// The location in the constant list to place this updated constant every time /// it is changed. Note that because of the nature of the types, we know how big the /// parameter details will be so you don't need to set that like you do for manual constants. /// |
type | AutoConstantType | The type of automatic constant to set. |
extraInfo | float | If the constant type needs more information (like a light index) put it here. |
return | void |
public SetAutoConstant ( int index, AutoConstantType type, int extraInfo ) : void | ||
index | int | /// The location in the constant list to place this updated constant every time /// it is changed. Note that because of the nature of the types, we know how big the /// parameter details will be so you don't need to set that like you do for manual constants. /// |
type | AutoConstantType | The type of automatic constant to set. |
extraInfo | int | If the constant type needs more information (like a light index) put it here. |
return | void |
public SetConstant ( int index, |
||
index | int | Index of the contant register. |
color | Structure containing 4 packed RGBA color values. | |
return | void |
public SetConstant ( int index, |
||
index | int | Index of the contant register. |
val | Structure containing 3 packed float values. | |
return | void |
public SetConstant ( int index, |
||
index | int | Index of the contant register. |
matrices | Values to set. | |
count | int | Number of matrices to set |
return | void |
public SetConstant ( int index, Vector3 val ) : void | ||
index | int | Index of the contant register. |
val | Vector3 | Structure containing 3 packed float values. |
return | void |
public SetConstant ( int index, Vector4 val ) : void | ||
index | int | Index of the contant register. |
val | Vector4 | Structure containing 4 packed float values. |
return | void |
public SetConstant ( int index, float value ) : void | ||
index | int | Index of the contant register to start at. |
value | float | |
return | void |
public SetConstant ( int index, float f0, float f1, float f2, float f3 ) : void | ||
index | int | Index of the contant register to start at. |
f0 | float | The floats. |
f1 | float | The floats. |
f2 | float | The floats. |
f3 | float | The floats. |
return | void |
public SetConstant ( int index, int ints ) : void | ||
index | int | Index of the contant register to start at. |
ints | int | Array of ints. |
return | void |
public SetConstantFromTime ( int index, float factor ) : void | ||
index | int | |
factor | float | |
return | void |
public SetIntConstant ( int index, int value ) : void | ||
index | int | Index of the contant register to start at. |
value | int | Value of the constant. |
return | void |
public SetNamedAutoConstant ( string name, AutoConstantType type ) : void | ||
name | string | |
type | AutoConstantType | |
return | void |
public SetNamedAutoConstant ( string name, AutoConstantType type, int extraInfo ) : void | ||
name | string | /// Name of the param. /// |
type | AutoConstantType | /// The type of automatic constant to set. /// |
extraInfo | int | /// Any extra information needed by the auto constant (i.e. light index, etc). /// |
return | void |
public SetNamedConstant ( string name, |
||
name | string | Name of the param. |
color | Structure containing 4 packed RGBA color values. | |
return | void |
public SetNamedConstant ( string name, |
||
name | string | Name of the param. |
val | Structure containing 3 packed float values. | |
return | void |
public SetNamedConstant ( string name, |
||
name | string | Name of the param. |
matrices | Array of matrices. | |
count | int | |
return | void |
public SetNamedConstant ( string name, Vector3 val ) : void | ||
name | string | Name of the param. |
val | Vector3 | Structure containing 3 packed float values. |
return | void |
public SetNamedConstant ( string name, Vector4 val ) : void | ||
name | string | Name of the contant register. |
val | Vector4 | Structure containing 4 packed float values. |
return | void |
public SetNamedConstant ( string name, float val ) : void | ||
name | string | |
val | float | |
return | void |
public SetNamedConstant ( string name, int val ) : void | ||
name | string | |
val | int | |
return | void |
public SetNamedConstantFromTime ( string name, float factor ) : void | ||
name | string | |
factor | float | |
return | void |
public SetNamedConstants ( GpuNamedConstants constantDefs ) : void | ||
constantDefs | GpuNamedConstants | |
return | void |
public UpdateAutoParams ( |
||
source | The source of the parameters | |
mask | GpuParamVariability | A mask of GpuParamVariability which identifies which autos will need updating |
return | void |
public UpdateAutoParamsLightsOnly ( |
||
source | /// A source containing all the updated data to be made available for auto updating /// the GPU program constants. /// | |
return | void |
public UpdateAutoParamsNoLights ( |
||
source | /// A source containing all the updated data to be made available for auto updating /// the GPU program constants. /// | |
return | void |
protected static AutoConstantDefinition[] AutoConstantDictionary | ||
return | AutoConstantDefinition[] |
protected AutoConstantEntryList autoConstantList | ||
return | AutoConstantEntryList |
protected FloatConstantEntryList floatConstants | ||
return | FloatConstantEntryList |
protected IntConstantEntryList intConstants | ||
return | IntConstantEntryList |