Namespace refactoring to avoid prefixing everything with Vulkan

This commit is contained in:
Dynamitos
2020-03-20 01:27:40 +01:00
parent 10f9b0989f
commit fda46a7ab8
32 changed files with 2995 additions and 2698 deletions
@@ -0,0 +1,38 @@
#include "VulkanGraphicsResources.h"
namespace Seele
{
namespace Vulkan
{
class CmdBufferBase : public RenderCommandBase
{
public:
private:
VkCommandBuffer handle;
};
DEFINE_REF(CmdBuffer);
class CmdBuffer : public CmdBufferBase
{
};
DEFINE_REF(CmdBuffer);
class CommandBufferManager
{
public:
CommandBufferManager(Vulkan::PGraphics graphics, PVulkanQueue queue);
virtual ~CommandBufferManager();
PCmdBuffer getCommands();
PSecondaryCommandBuffer createSecondaryCmdBuffer();
void submitCommands(PSemaphore signalSemaphore = nullptr);
void waitForBuffer(PCommandbuffer cmdBuffer, float timeToWait = 1.0f);
private:
VkCommandPool commandPool;
QueueType queueType;
uint32 queueFamilyIndex;
Array<Vulkan::PCmdBuffer> allocatedBuffers;
};
DEFINE_REF(VulkanCommandBufferManager);
}
}