BsGLCommandBufferManager.cpp 637 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 bs { namespace ct
  6. {
  7. SPtr<CommandBuffer> GLCommandBufferManager::createInternal(GpuQueueType type, UINT32 deviceIdx,
  8. UINT32 queueIdx, bool secondary)
  9. {
  10. CommandBuffer* buffer = new (bs_alloc<GLCommandBuffer>()) GLCommandBuffer(type, deviceIdx, queueIdx, secondary);
  11. return bs_shared_ptr(buffer);
  12. }
  13. }}