Generic GraphicsBuffer overload for Effect class?

The Effect class has many overloads but there was none for a generic GraphicsBuffer...

effect.SetValue(EffectHandle paramater, GraphicsBuffer data)

could also add:

effect.SetValue(EffectHandle paramater, GraphicsBuffer<T> data)

I'm phasing out all my non-generic lists in my game but got stumped on this one.







Answer this question

Generic GraphicsBuffer overload for Effect class?

  • Tomy From Latvia

    You may notice that the generic GraphicsBuffer derives from the non-generic version..

    Therefore, you can already pass in GraphicsBuffer<T> to that method just fine.



  • Generic GraphicsBuffer overload for Effect class?