forked from Dynamitos/Seele
Trying to fix invalid descriptorlayout
This commit is contained in:
1 parent
79388bf41a
commit
ceee96b462
69 files changed
+1087
-393
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user