Add namespace to all classes

This commit is contained in:
Thraix
2023-02-05 10:52:27 +01:00
parent 708b81c571
commit 88979a5ab9
32 changed files with 2611 additions and 2535 deletions
+16 -13
View File
@@ -3,19 +3,22 @@
#include "Common.h"
#include "CommandBuffer.h"
class CommandBufferScoped : public CommandBuffer
namespace Copium
{
CP_DELETE_COPY_AND_MOVE_CTOR(CommandBufferScoped);
public:
CommandBufferScoped(Instance& instance)
: CommandBuffer{instance, CommandBufferType::SingleUse}
class CommandBufferScoped : public CommandBuffer
{
CommandBuffer::Begin();
}
CP_DELETE_COPY_AND_MOVE_CTOR(CommandBufferScoped);
public:
CommandBufferScoped(Instance& instance)
: CommandBuffer{instance, Type::SingleUse}
{
CommandBuffer::Begin();
}
~CommandBufferScoped()
{
CommandBuffer::End();
CommandBuffer::Submit();
}
};
~CommandBufferScoped()
{
CommandBuffer::End();
CommandBuffer::Submit();
}
};
}