Fixing staging buffers not getting deleted

remove vgcore
This commit is contained in:
2023-11-06 15:08:27 +01:00
parent d35f7acddc
commit 4c567b60f3
69 changed files with 505 additions and 304 deletions
+7 -2
View File
@@ -56,6 +56,11 @@ public:
{
return (int)(p - other.p);
}
constexpr IteratorBase& operator+=(difference_type other)
{
p+=other;
return *this;
}
constexpr bool operator<(const IteratorBase& other) const
{
return p < other.p;
@@ -725,7 +730,7 @@ public:
}
StaticArray(T value)
{
for (int i = 0; i < N; ++i)
for (size_t i = 0; i < N; ++i)
{
_data[i] = value;
}
@@ -736,7 +741,7 @@ public:
{
assert(init.size() == N);
auto beg = init.begin();
for (int i = 0; i < N; ++i)
for (size_t i = 0; i < N; ++i)
{
_data[i] = *beg;
beg++;
+4 -4
View File
@@ -209,17 +209,17 @@ public:
constexpr Map(const Map& other)
: nodeContainer(other.nodeContainer)
, root(other.root)
, iteratorsDirty(true)
, _size(other._size)
, comp(other.comp)
, iteratorsDirty(true)
{
}
constexpr Map(Map&& other) noexcept
: nodeContainer(std::move(other.nodeContainer))
, root(std::move(other.root))
, iteratorsDirty(true)
, _size(std::move(other._size))
, comp(std::move(other.comp))
, iteratorsDirty(true)
{
}
constexpr ~Map() noexcept
@@ -502,7 +502,7 @@ private:
endIt = calcEndIterator();
iteratorsDirty = false;
}
inline Iterator calcBeginIterator() const
constexpr Iterator calcBeginIterator() const
{
size_t beginIndex = root;
Array<size_t> beginTraversal;
@@ -518,7 +518,7 @@ private:
}
return Iterator(beginIndex, &nodeContainer, std::move(beginTraversal));
}
inline Iterator calcEndIterator() const
constexpr Iterator calcEndIterator() const
{
size_t endIndex = root;
Array<size_t> endTraversal;