CommandBufferFactory.inl.h 624 B

1234567891011121314151617181920212223242526
  1. // Copyright (C) 2009-2021, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #include <AnKi/Gr/Vulkan/CommandBufferFactory.h>
  6. namespace anki {
  7. inline GrAllocator<U8>& MicroCommandBuffer::getAllocator()
  8. {
  9. return m_threadAlloc->getAllocator();
  10. }
  11. inline void MicroCommandBufferPtrDeleter::operator()(MicroCommandBuffer* ptr)
  12. {
  13. ANKI_ASSERT(ptr);
  14. ptr->m_threadAlloc->deleteCommandBuffer(ptr);
  15. }
  16. inline GrAllocator<U8>& CommandBufferThreadAllocator::getAllocator()
  17. {
  18. return m_factory->m_alloc;
  19. }
  20. } // end namespace anki