Add command buffers (WIP)

This commit is contained in:
Lynix
2020-04-02 21:07:01 +02:00
parent cf396b0792
commit f443bec6bc
50 changed files with 1076 additions and 215 deletions

View File

@@ -19,16 +19,17 @@ namespace Nz
{
public:
SoftwareBuffer(Buffer* parent, BufferType type);
~SoftwareBuffer();
~SoftwareBuffer() = default;
bool Fill(const void* data, UInt32 offset, UInt32 size) override;
bool Fill(const void* data, UInt64 offset, UInt64 size) override;
bool Initialize(UInt32 size, BufferUsageFlags usage) override;
bool Initialize(UInt64 size, BufferUsageFlags usage) override;
const UInt8* GetData() const;
UInt64 GetSize() const;
DataStorage GetStorage() const override;
void* Map(BufferAccess access, UInt32 offset = 0, UInt32 size = 0) override;
void* Map(BufferAccess access, UInt64 offset = 0, UInt64 size = 0) override;
bool Unmap() override;
private: