| 123456789101112131415161718192021222324252627282930313233343536 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "BsCorePrerequisites.h"
- #include "BsModule.h"
- namespace BansheeEngine
- {
- /** @addtogroup RenderAPI
- * @{
- */
- /**
- * Contains a list of render API commands that can be queued for execution on the GPU. User is allowed to populate the
- * command buffer from any thread, ensuring render API command generation can be multi-threaded. Command buffers
- * must always be created on the core thread. Same command buffer cannot be used on multiple threads simulateously
- * without external synchronization.
- */
- class BS_CORE_EXPORT CommandBuffer
- {
- public:
- /** @copydoc CommandBufferManager::create */
- static SPtr<CommandBuffer> create(CommandBufferType type, UINT32 deviceIdx = 0, UINT32 syncMask = 0xFFFFFFFF,
- bool secondary = false);
- protected:
- CommandBuffer(CommandBufferType type, UINT32 syncMask, bool secondary);
- CommandBufferType mType;
- UINT32 mSyncMask;
- bool mIsSecondary;
- };
- /** @} */
- }
|