BsCommandBuffer.cpp 713 B

12345678910111213141516171819
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #include "BsCommandBuffer.h"
  4. #include "BsCommandBufferManager.h"
  5. namespace BansheeEngine
  6. {
  7. CommandBuffer::CommandBuffer(CommandBufferType type, UINT32 syncMask, bool secondary)
  8. :mType(type), mSyncMask(syncMask), mIsSecondary(secondary)
  9. {
  10. }
  11. SPtr<CommandBuffer> CommandBuffer::create(CommandBufferType type, UINT32 deviceIdx, UINT32 syncMask,
  12. bool secondary)
  13. {
  14. return CommandBufferManager::instance().create(type, deviceIdx, syncMask, secondary);
  15. }
  16. }