BsCommandBufferManager.h 834 B

123456789101112131415161718192021222324252627282930
  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. virtual ~CommandBufferManager() {}
  20. /** @copydoc CommandBuffer::create */
  21. virtual SPtr<CommandBuffer> create(CommandBufferType type, UINT32 deviceIdx = 0, UINT32 syncMask = 0xFFFFFFFF,
  22. bool secondary = false) = 0;
  23. };
  24. /** @} */
  25. }