BsCommandBufferManager.h 796 B

12345678910111213141516171819202122232425262728
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsCorePrerequisites.h"
  5. #include "BsModule.h"
  6. namespace BansheeEngine
  7. {
  8. /** @addtogroup RenderAPI-Internal
  9. * @{
  10. */
  11. /**
  12. * Handles creation of command buffers. See CommandBuffer.
  13. *
  14. * @note Core thread only.
  15. */
  16. class BS_CORE_EXPORT CommandBufferManager : public Module<CommandBufferManager>
  17. {
  18. public:
  19. /** @copydoc CommandBuffer::create */
  20. virtual SPtr<CommandBuffer> create(CommandBufferType type, UINT32 deviceIdx = 0, UINT32 syncMask = 0xFFFFFFFF,
  21. bool secondary = false) = 0;
  22. };
  23. /** @} */
  24. }