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); }
public RenderContext(GraphicsDevice graphicsDevice) : base(graphicsDevice, new System.Diagnostics.StackTrace(1)) { CreateDefaultState(); UpdateContext = new RenderUpdateContext(graphicsDevice, this); }