| 1 | //************************************ bs::framework - Copyright 2018 Marko Pintera **************************************// |
|---|---|
| 2 | //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// |
| 3 | #include "BsGLCommandBufferManager.h" |
| 4 | #include "BsGLCommandBuffer.h" |
| 5 | |
| 6 | namespace bs { namespace ct |
| 7 | { |
| 8 | SPtr<CommandBuffer> GLCommandBufferManager::createInternal(GpuQueueType type, UINT32 deviceIdx, |
| 9 | UINT32 queueIdx, bool secondary) |
| 10 | { |
| 11 | CommandBuffer* buffer = new (bs_alloc<GLCommandBuffer>()) GLCommandBuffer(type, deviceIdx, queueIdx, secondary); |
| 12 | return bs_shared_ptr(buffer); |
| 13 | } |
| 14 | }} |