BsGLCommandBufferManager.cpp 629 B

1234567891011121314
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #include "BsGLCommandBufferManager.h"
  4. #include "BsGLCommandBuffer.h"
  5. namespace BansheeEngine
  6. {
  7. SPtr<CommandBuffer> GLCommandBufferManager::create(CommandBufferType type, UINT32 deviceIdx, UINT32 syncMask,
  8. bool secondary)
  9. {
  10. CommandBuffer* buffer = new (bs_alloc<GLCommandBuffer>()) GLCommandBuffer(type, deviceIdx, syncMask, secondary);
  11. return bs_shared_ptr(buffer);
  12. }
  13. }