update xcode

This commit is contained in:
2019-06-19 10:58:34 +02:00
parent 41ece63aa7
commit 6058f05d3f
5 changed files with 38 additions and 22 deletions

View File

@@ -45,3 +45,17 @@ void Layer::Snapshot::optimize()
//glm::vec2 bbsz = bbmax - bbmin;
}
}
int Layer::Snapshot::memsize() const
{
int ret = 0;
for (int i = 0; i < 6; i++)
{
if (m_dirty_face[i])
{
glm::vec2 sz = zw(m_dirty_box[i]) - xy(m_dirty_box[i]);
ret += sz.x * sz.y * 4;
}
}
return ret;
}