mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-02 01:24:11 +01:00
[dxvk] Move DxvkPipelineManager instance back to DxvkDevice
This commit is contained in:
parent
d201a1f7c6
commit
5e02c1bb2f
@ -9,10 +9,11 @@ namespace dxvk {
|
||||
DxvkContext::DxvkContext(
|
||||
const Rc<DxvkDevice>& device,
|
||||
const Rc<DxvkPipelineCache>& pipelineCache,
|
||||
const Rc<DxvkPipelineManager>& pipelineManager,
|
||||
const Rc<DxvkMetaClearObjects>& metaClearObjects)
|
||||
: m_device (device),
|
||||
m_pipeCache (pipelineCache),
|
||||
m_pipeMgr (new DxvkPipelineManager(device.ptr())),
|
||||
m_pipeMgr (pipelineManager),
|
||||
m_metaClear (metaClearObjects) { }
|
||||
|
||||
|
||||
|
@ -30,6 +30,7 @@ namespace dxvk {
|
||||
DxvkContext(
|
||||
const Rc<DxvkDevice>& device,
|
||||
const Rc<DxvkPipelineCache>& pipelineCache,
|
||||
const Rc<DxvkPipelineManager>& pipelineManager,
|
||||
const Rc<DxvkMetaClearObjects>& metaClearObjects);
|
||||
~DxvkContext();
|
||||
|
||||
|
@ -16,6 +16,7 @@ namespace dxvk {
|
||||
m_memory (new DxvkMemoryAllocator (adapter, vkd)),
|
||||
m_renderPassPool (new DxvkRenderPassPool (vkd)),
|
||||
m_pipelineCache (new DxvkPipelineCache (vkd)),
|
||||
m_pipelineManager (new DxvkPipelineManager (this)),
|
||||
m_metaClearObjects(new DxvkMetaClearObjects (vkd)),
|
||||
m_unboundResources(this),
|
||||
m_submissionQueue (this) {
|
||||
@ -106,6 +107,7 @@ namespace dxvk {
|
||||
Rc<DxvkContext> DxvkDevice::createContext() {
|
||||
return new DxvkContext(this,
|
||||
m_pipelineCache,
|
||||
m_pipelineManager,
|
||||
m_metaClearObjects);
|
||||
}
|
||||
|
||||
|
@ -355,6 +355,7 @@ namespace dxvk {
|
||||
Rc<DxvkMemoryAllocator> m_memory;
|
||||
Rc<DxvkRenderPassPool> m_renderPassPool;
|
||||
Rc<DxvkPipelineCache> m_pipelineCache;
|
||||
Rc<DxvkPipelineManager> m_pipelineManager;
|
||||
Rc<DxvkMetaClearObjects> m_metaClearObjects;
|
||||
|
||||
DxvkUnboundResources m_unboundResources;
|
||||
|
Loading…
Reference in New Issue
Block a user