public void DrawPrimitive(GeometricPrimitive primitive)
 {
     if (ActiveMaterial != primitive.MaterialShader)
     {
         ActiveMaterial = primitive.MaterialShader;
         ActiveMaterial.Begin();
     }
     ActiveMaterial.SetBuffers(primitive);
     primitive.Draw(Context);
 }