Свойство | Type | Description | |
---|---|---|---|
AutoConstantDictionary | AutoConstantDefinition[] | ||
autoAddParamName | bool | ||
autoConstantList | AutoConstantEntryList | ||
floatConstants | FloatConstantEntryList | ||
ignoreMissingParameters | bool | ||
intConstants | IntConstantEntryList | ||
namedParams | AxiomCollection |
||
paramTypeList | List |
||
tmpVals | float[] | ||
transposeMatrices | bool |
Свойство | Type | Description | |
---|---|---|---|
SetLogicalIndexes | void |
Méthode | 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.
|
Méthode | Description | |
---|---|---|
SetLogicalIndexes ( GpuLogicalBufferStruct floatIndexMap, GpuLogicalBufferStruct intIndexMap ) : void |
public AddParameterToDefaultsList ( GpuProgramParameterType type, string name ) : void | ||
type | GpuProgramParameterType | |
name | string | |
Résultat | void |
public CopyConstantsFrom ( |
||
source | Set of params to use as the source. | |
Résultat | void |
public CopyMatchingNamedConstantsFrom ( |
||
source | ||
Résultat | void |
public FindNamedConstantDefinition ( string name, bool throwExceptionIfNotFound ) : GpuConstantDefinition | ||
name | string | The name to look up |
throwExceptionIfNotFound | bool | |
Résultat | GpuConstantDefinition |
public static GetAutoConstantDefinition ( int idx, AutoConstantDefinition &def ) : bool | ||
idx | int | The auto constant index |
def | AutoConstantDefinition | |
Résultat | bool |
public static GetAutoConstantDefinition ( string name, AutoConstantDefinition &def ) : bool | ||
name | string | The name of the auto constant |
def | AutoConstantDefinition | |
Résultat | bool |
public GetFloatConstant ( int i ) : FloatConstantEntry | ||
i | int | |
Résultat | FloatConstantEntry |
public GetFloatPointer ( int physicalIndex ) : float[] | ||
physicalIndex | int | |
Résultat | float[] |
public GetIntConstant ( int i ) : IntConstantEntry | ||
i | int | |
Résultat | IntConstantEntry |
public GetIntPointer ( int physicalIndex ) : int[] | ||
physicalIndex | int | |
Résultat | int[] |
public GetNameByIndex ( int index ) : string | ||
index | int | Index of the parameter to look up. |
Résultat | string |
public GetNamedFloatConstant ( string name ) : FloatConstantEntry | ||
name | string | Name of the constant to retreive. |
Résultat | FloatConstantEntry |
public GetNamedIntConstant ( string name ) : IntConstantEntry | ||
name | string | Name of the constant to retreive. |
Résultat | IntConstantEntry |
public GetParamIndex ( string name ) : int | ||
name | string | /// Name of the param. /// |
Résultat | int |
public MapParamNameToIndex ( string name, int index ) : void | ||
name | string | Name of the param. |
index | int | Constant index of the param. |
Résultat | void |
public SetAutoConstant ( AutoConstantEntry entry ) : void | ||
entry | AutoConstantEntry | |
Résultat | 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. |
Résultat | 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. |
Résultat | 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. |
Résultat | void |
public SetConstant ( int index, |
||
index | int | Index of the contant register. |
color | Structure containing 4 packed RGBA color values. | |
Résultat | void |
public SetConstant ( int index, |
||
index | int | Index of the contant register. |
val | Structure containing 3 packed float values. | |
Résultat | void |
public SetConstant ( int index, |
||
index | int | Index of the contant register. |
matrices | Values to set. | |
count | int | Number of matrices to set |
Résultat | void |
public SetConstant ( int index, Vector3 val ) : void | ||
index | int | Index of the contant register. |
val | Vector3 | Structure containing 3 packed float values. |
Résultat | void |
public SetConstant ( int index, Vector4 val ) : void | ||
index | int | Index of the contant register. |
val | Vector4 | Structure containing 4 packed float values. |
Résultat | void |
public SetConstant ( int index, float value ) : void | ||
index | int | Index of the contant register to start at. |
value | float | |
Résultat | 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. |
Résultat | void |
public SetConstant ( int index, int ints ) : void | ||
index | int | Index of the contant register to start at. |
ints | int | Array of ints. |
Résultat | void |
public SetConstantFromTime ( int index, float factor ) : void | ||
index | int | |
factor | float | |
Résultat | void |
public SetIntConstant ( int index, int value ) : void | ||
index | int | Index of the contant register to start at. |
value | int | Value of the constant. |
Résultat | void |
public SetNamedAutoConstant ( string name, AutoConstantType type ) : void | ||
name | string | |
type | AutoConstantType | |
Résultat | 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). /// |
Résultat | void |
public SetNamedConstant ( string name, |
||
name | string | Name of the param. |
color | Structure containing 4 packed RGBA color values. | |
Résultat | void |
public SetNamedConstant ( string name, |
||
name | string | Name of the param. |
val | Structure containing 3 packed float values. | |
Résultat | void |
public SetNamedConstant ( string name, |
||
name | string | Name of the param. |
matrices | Array of matrices. | |
count | int | |
Résultat | void |
public SetNamedConstant ( string name, Vector3 val ) : void | ||
name | string | Name of the param. |
val | Vector3 | Structure containing 3 packed float values. |
Résultat | void |
public SetNamedConstant ( string name, Vector4 val ) : void | ||
name | string | Name of the contant register. |
val | Vector4 | Structure containing 4 packed float values. |
Résultat | void |
public SetNamedConstant ( string name, float val ) : void | ||
name | string | |
val | float | |
Résultat | void |
public SetNamedConstant ( string name, int val ) : void | ||
name | string | |
val | int | |
Résultat | void |
public SetNamedConstantFromTime ( string name, float factor ) : void | ||
name | string | |
factor | float | |
Résultat | void |
public SetNamedConstants ( GpuNamedConstants constantDefs ) : void | ||
constantDefs | GpuNamedConstants | |
Résultat | void |
public UpdateAutoParams ( |
||
source | The source of the parameters | |
mask | GpuParamVariability | A mask of GpuParamVariability which identifies which autos will need updating |
Résultat | void |
public UpdateAutoParamsLightsOnly ( |
||
source | /// A source containing all the updated data to be made available for auto updating /// the GPU program constants. /// | |
Résultat | void |
public UpdateAutoParamsNoLights ( |
||
source | /// A source containing all the updated data to be made available for auto updating /// the GPU program constants. /// | |
Résultat | void |
protected static AutoConstantDefinition[] AutoConstantDictionary | ||
Résultat | AutoConstantDefinition[] |
protected AutoConstantEntryList autoConstantList | ||
Résultat | AutoConstantEntryList |
protected FloatConstantEntryList floatConstants | ||
Résultat | FloatConstantEntryList |
protected IntConstantEntryList intConstants | ||
Résultat | IntConstantEntryList |