public DX11DeviceRenderer(DX11RenderContext context, DX11Graph graph, ILogger logger) { this.logger = logger; this.context = context; this.graph = graph; this.DoNotDestroy = false; }
public DX11RenderManager(IDX11RenderContextManager devmanager, IDX11GraphBuilder builder, ILogger logger) { this.gb = builder; this.RenderGraphs = new Dictionary<DX11RenderContext, DX11DeviceRenderer>(); this.devmanager = devmanager; this.devmanager.RenderContextCreated += this.RenderContextCreated; this.allocator = new DX11DeviceAllocator(devmanager); this.allocator.RenderContextDisposing += this.RenderContextDisposing; this.graph = builder.Graph; this.logger = logger; foreach (DX11RenderContext context in this.devmanager.RenderContexts) { this.RenderGraphs.Add(context, new DX11DeviceRenderer(context, this.graph,this.logger)); } }
public DX11DeviceRenderer(DX11RenderContext context, DX11Graph graph, ILogger logger) { this.logger = logger; this.context = context; this.graph = graph; }