Big buffer refactor

Replaced RenderBuffer class, replaced AbstractBuffer by Buffer
This commit is contained in:
Jérôme Leclercq
2022-01-23 00:05:08 +01:00
parent 754a0016c7
commit 29786765c6
98 changed files with 699 additions and 1427 deletions

View File

@@ -50,14 +50,14 @@ namespace Nz
SparsePtr& operator=(const SparsePtr& ptr) = default;
SparsePtr operator+(int count) const;
SparsePtr operator+(unsigned int count) const;
SparsePtr operator-(int count) const;
SparsePtr operator-(unsigned int count) const;
SparsePtr operator+(Int64 count) const;
SparsePtr operator+(UInt64 count) const;
SparsePtr operator-(Int64 count) const;
SparsePtr operator-(UInt64 count) const;
std::ptrdiff_t operator-(const SparsePtr& ptr) const;
SparsePtr& operator+=(int count);
SparsePtr& operator-=(int count);
SparsePtr& operator+=(Int64 count);
SparsePtr& operator-=(Int64 count);
SparsePtr& operator++();
SparsePtr operator++(int);

View File

@@ -260,7 +260,7 @@ namespace Nz
*/
template<typename T>
SparsePtr<T> SparsePtr<T>::operator+(int count) const
SparsePtr<T> SparsePtr<T>::operator+(Int64 count) const
{
return SparsePtr(m_ptr + count * m_stride, m_stride);
}
@@ -273,7 +273,7 @@ namespace Nz
*/
template<typename T>
SparsePtr<T> SparsePtr<T>::operator+(unsigned int count) const
SparsePtr<T> SparsePtr<T>::operator+(UInt64 count) const
{
return SparsePtr(m_ptr + count * m_stride, m_stride);
}
@@ -286,7 +286,7 @@ namespace Nz
*/
template<typename T>
SparsePtr<T> SparsePtr<T>::operator-(int count) const
SparsePtr<T> SparsePtr<T>::operator-(Int64 count) const
{
return SparsePtr(m_ptr - count * m_stride, m_stride);
}
@@ -299,7 +299,7 @@ namespace Nz
*/
template<typename T>
SparsePtr<T> SparsePtr<T>::operator-(unsigned int count) const
SparsePtr<T> SparsePtr<T>::operator-(UInt64 count) const
{
return SparsePtr(m_ptr - count * m_stride, m_stride);
}
@@ -325,7 +325,7 @@ namespace Nz
*/
template<typename T>
SparsePtr<T>& SparsePtr<T>::operator+=(int count)
SparsePtr<T>& SparsePtr<T>::operator+=(Int64 count)
{
m_ptr += count * m_stride;
@@ -340,7 +340,7 @@ namespace Nz
*/
template<typename T>
SparsePtr<T>& SparsePtr<T>::operator-=(int count)
SparsePtr<T>& SparsePtr<T>::operator-=(Int64 count)
{
m_ptr -= count * m_stride;