forked from Dynamitos/Seele
Reducing memory usage
This commit is contained in:
1 parent
819b541ff2
commit
64a26bfd57
37 files changed
+216
-44
No files matched your search
@@ -61,7 +61,7 @@ DEFINE_REF(DestructionManager)
|
||||
|
||||
class CommandBoundResource {
|
||||
public:
|
||||
CommandBoundResource(PGraphics graphics) : graphics(graphics) {}
|
||||
CommandBoundResource(PGraphics graphics, const std::string& name) : graphics(graphics), name(name) {}
|
||||
virtual ~CommandBoundResource() {
|
||||
if (isCurrentlyBound())
|
||||
abort();
|
||||
@@ -72,6 +72,7 @@ class CommandBoundResource {
|
||||
|
||||
protected:
|
||||
PGraphics graphics;
|
||||
std::string name;
|
||||
uint64 bindCount = 0;
|
||||
};
|
||||
DEFINE_REF(CommandBoundResource)
|
||||
|
||||
Reference in new issue
Block a user