Esempio n. 1
0
        public RenderContext(GraphicsDevice graphicsDevice, DeviceContext context)
            : base(graphicsDevice, new StackTrace(1))
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            this.Context = context;

            vertexCache = new ShaderStageCache(null);
            pixelCache  = new ShaderStageCache(null);

            UpdateContext = new RenderUpdateContext(graphicsDevice, this);
        }
Esempio n. 2
0
 public RenderContext(GraphicsDevice graphicsDevice)
     : base(graphicsDevice, new System.Diagnostics.StackTrace(1))
 {
     CreateDefaultState();
     UpdateContext = new RenderUpdateContext(graphicsDevice, this);
 }