CommandBufferFactory.inl.h 624 B

123456789101112131415161718192021222324252627
  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. {
  8. inline GrAllocator<U8>& MicroCommandBuffer::getAllocator()
  9. {
  10. return m_threadAlloc->getAllocator();
  11. }
  12. inline void MicroCommandBufferPtrDeleter::operator()(MicroCommandBuffer* ptr)
  13. {
  14. ANKI_ASSERT(ptr);
  15. ptr->m_threadAlloc->deleteCommandBuffer(ptr);
  16. }
  17. inline GrAllocator<U8>& CommandBufferThreadAllocator::getAllocator()
  18. {
  19. return m_factory->m_alloc;
  20. }
  21. } // end namespace anki