Given that the EffectParameter class is sealed I need to ask: any chance for future versions to take advantage of generics for methods like SetValue and GetValue
I 'm not meaning to create a new 'EffectParameter<T>' class (what'd make it difficult for the 'EffectParameterCollection' class), but something like:
- GetValue<T>() or GetValue<T>(T dummy) -the latter to avoid the use of the static <T> when calling the method, instead of GetValueVector3() and so on (ditto for the methods that return an array).
- SetValue<T>(T value), instead of overloading SetValue(...).
That way it could be easier -for us- to implement a sort of "fx parameter mapping" technique as well as an 'EffectParameterHandler' class without the use of casting and or (un)boxing and of course avoiding direct use of myEffect.Parameters["parameter1"] and such.