Add check to flush range size

This commit is contained in:
2024-03-08 15:26:39 -05:00
parent 4b0ee23859
commit 97556d5e31

View File

@@ -65,6 +65,9 @@ namespace fgl::engine
assert(
start_idx < this->m_count && "BufferSuballocationVector::flushRange start_idx index out of bounds" );
assert( end_idx <= this->m_count && "BufferSuballocationVector::flushRange end_idx index out of bounds" );
assert(
end_idx - start_idx > 0
&& "BufferSuballocationVector::flushRange: end_idx - start_idx must be higher then 0" );
assert(
start_idx < end_idx
&& "BufferSuballocationVector::flushRange start_idx index must be less than end_idx index" );