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