Add depth buffer

- Add depth testing to swapchain
- Add Shader abstraction
- Add CommandBuffer abstraction
This commit is contained in:
Thraix
2023-01-29 23:22:17 +01:00
parent 87ed5739b3
commit 9de2ff594b
25 changed files with 927 additions and 488 deletions
+21
View File
@@ -0,0 +1,21 @@
#pragma once
#include "Common.h"
#include "CommandBuffer.h"
class CommandBufferScoped : public CommandBuffer
{
CP_DELETE_COPY_AND_MOVE_CTOR(CommandBufferScoped);
public:
CommandBufferScoped(Instance& instance)
: CommandBuffer{instance, CommandBufferType::SingleUse}
{
CommandBuffer::Begin();
}
~CommandBufferScoped()
{
CommandBuffer::End();
CommandBuffer::Submit();
}
};