|Project:||The Open Toolkit library|
U'm using Boo + OpenTK and I need to support generic uniform parameters. My class structure for shaders and parameters is based on generics and requires to call one of the GL.Uniform* functions on the lowest level. I'd like to have a mapping between Type -> Uniform func that is resolved at compile/assembly time, but not at runtime. AFAIK, DotNET doesn't support generic specialization... How can it be achieved?