mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-03 13:11:34 +00:00
assert vector is nonempty in SerialQueue::Enqueue
This commit is contained in:
parent
e480a0724c
commit
6aef6833b7
@ -110,12 +110,14 @@ namespace backend {
|
||||
|
||||
template<typename T>
|
||||
void SerialQueue<T>::Enqueue(const std::vector<T>& values, Serial serial) {
|
||||
ASSERT(values.size() > 0);
|
||||
ASSERT(Empty() || storage.back().first <= serial);
|
||||
storage.emplace_back(SerialPair(serial, {values}));
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
void SerialQueue<T>::Enqueue(std::vector<T>&& values, Serial serial) {
|
||||
ASSERT(values.size() > 0);
|
||||
ASSERT(Empty() || storage.back().first <= serial);
|
||||
storage.emplace_back(SerialPair(serial, {values}));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user