Commit a37a6898 authored by Laszlo Agocs's avatar Laszlo Agocs
Browse files

Make binding batches comparable

parent 97273e69
......@@ -292,10 +292,20 @@ struct QRhiBatchedBindings
struct Batch {
uint startBinding;
QVarLengthArray<T, 4> resources;
bool operator==(const Batch &other) const
{
return startBinding == other.startBinding && resources == other.resources;
}
};
QVarLengthArray<Batch, 4> batches; // sorted by startBinding
bool operator==(const QRhiBatchedBindings<T> &other) const
{
return batches == other.batches;
}
private:
Batch curBatch;
int curBinding = -1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment