public static GraphicRender <TRenderStack, TEffect> SetRender <TTechnique, TEffect>(
            Action <TRenderStack, GraphicRender <TRenderStack, TEffect> > renderMethod)
            where TEffect : Effect
            where TTechnique : Technique
        {
            var render = new RelayRender <TRenderStack, TEffect>(renderMethod);

            RenderManager.RegisterRender <TRenderStack, TTechnique>(render);
            RenderManager.UpdateRenderStacks <TRenderStack>();
            return(render);
        }
 public DecalGlypIdRender(DecalGlyp glyp)
 {
     this.glyp   = glyp;
     this.render = new RelayRender <DecalGlyp, TranslationGlypHitTestEffect>(RenderMethod);
 }