/// <summary>Construct the object</summary> public ImmediateContext(Context context, iVrmacDraw factory, PaletteTexture palette) { resources = new GpuResources(context, palette); states = new StatesCache(resources); depthValues = DepthValues.create(context.swapChainFormats.depth); tesselatorThread = new Tessellate.Tesselator(context, factory); }
/// <summary> /// Initializes a new instance of the <see cref="RenderTarget"/> class. /// </summary> public RenderTarget() { _defaultView = new View(); _view = new View(); Cache = new StatesCache(); Cache.VertexCache = new Vertex[StatesCache.VertexCacheSize]; Cache.GlStatesSet = false; }