Trying to fix invalid descriptorlayout

This commit is contained in:
Dynamitos
2020-10-03 11:00:10 +02:00
parent 79388bf41a
commit ceee96b462
69 changed files with 1087 additions and 393 deletions
+25
View File
@@ -229,6 +229,15 @@ namespace Seele
refreshIterators();
return _data[arraySize - 1];
}
T &addUnique(const T &item = T())
{
Iterator it;
if((it = find(item)) != endIt)
{
return *it;
}
return add(item);
}
template<typename... args>
T &emplace(args...)
{
@@ -291,6 +300,22 @@ namespace Seele
}
refreshIterators();
}
inline uint32 indexOf(Iterator iterator)
{
return iterator - beginIt;
}
inline uint32 indexOf(ConstIterator iterator) const
{
return iterator.p - beginIt.p;
}
inline uint32 indexOf(T& t)
{
return indexOf(find(t));
}
inline uint32 indexOf(const T& t) const
{
return indexOf(find(t));
}
inline uint32 size() const
{
return arraySize;