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