Elevate Engine 1
Loading...
Searching...
No Matches
RenderBucket.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4#include "RenderCommand.h"
5
6namespace Elevate
7{
9 {
10 public:
11 enum Type : uint8_t
12 {
19 Count // Only used to keep the number of bucket at compile time
20 };
21
22 void Submit(const RenderCommand& command);
23 void Sort();
24 void Flush();
25 void Clear();
26
27 size_t GetCommandCount() const;
28 size_t GetMemoryUsage() const;
29
30 protected:
31 std::vector<RenderCommand> m_commands;
32 bool m_isSorted = true;
33 };
34}
std::vector< RenderCommand > m_commands
size_t GetCommandCount() const
void Submit(const RenderCommand &command)
size_t GetMemoryUsage() const