Browse Source

Try to fix the build

Panagiotis Christopoulos Charitos 1 week ago
parent
commit
ed481d1869

+ 5 - 0
AnKi/Gr/D3D/D3DCommandBufferFactory.h

@@ -47,6 +47,11 @@ public:
 		return m_refcount.load();
 	}
 
+	Bool canRecycle() const
+	{
+		return true;
+	}
+
 	D3D12GraphicsCommandListX& getCmdList() const
 	{
 		ANKI_ASSERT(m_cmdList);

+ 5 - 0
AnKi/Gr/D3D/D3DSwapchainFactory.h

@@ -51,6 +51,11 @@ public:
 		return m_refcount.load();
 	}
 
+	Bool canRecycle() const
+	{
+		return true;
+	}
+
 	/// Interface method.
 	void onFenceDone()
 	{

+ 1 - 1
AnKi/Gr/Vulkan/VkFenceFactory.cpp

@@ -8,7 +8,7 @@
 
 namespace anki {
 
-MicroFencePtr FenceFactory::newInstance(CString name)
+MicroFencePtr FenceFactory::newFence(CString name)
 {
 	MicroFence* fence = m_recycler.findToReuse();
 

+ 1 - 1
AnKi/Gr/Vulkan/VkFenceFactory.h

@@ -101,7 +101,7 @@ class FenceFactory : public MakeSingleton<FenceFactory>
 
 public:
 	// Create a new fence pointer.
-	MicroFencePtr newInstance(CString name = "unnamed");
+	MicroFencePtr newFence(CString name = "unnamed");
 
 private:
 	MicroObjectRecycler<MicroFence> m_recycler;

+ 2 - 2
AnKi/Gr/Vulkan/VkGrManager.cpp

@@ -1258,7 +1258,7 @@ TexturePtr GrManagerImpl::acquireNextPresentableTexture()
 	// Create some objets outside the lock
 	Array<Char, 16> name;
 	snprintf(name.getBegin(), name.getSize(), "Acquire %" PRIu64, m_frame);
-	MicroFencePtr fence = FenceFactory::getSingleton().newInstance(name.getBegin());
+	MicroFencePtr fence = FenceFactory::getSingleton().newFence(name.getBegin());
 
 	MicroSemaphorePtr acquireSemaphore = SemaphoreFactory::getSingleton().newInstance(false, name.getBegin());
 
@@ -1360,7 +1360,7 @@ void GrManagerImpl::endFrameInternal()
 void GrManagerImpl::submitInternal(WeakArray<CommandBuffer*> cmdbs, WeakArray<Fence*> waitFences, FencePtr* signalFence, Bool flushAndSerialize)
 {
 	// First thing, create a fence
-	MicroFencePtr fence = FenceFactory::getSingleton().newInstance("Submit");
+	MicroFencePtr fence = FenceFactory::getSingleton().newFence("Submit");
 
 	// Gather command buffers
 	GrDynamicArray<VkCommandBuffer> vkCmdbs;