Fix index buffer

This commit is contained in:
2024-10-14 16:24:48 -05:00
parent 43fd780e0b
commit 56fb496ec7
3 changed files with 29 additions and 10 deletions

View File

@@ -86,6 +86,9 @@ namespace Global {
attributeDescriptions[2].offset = offsetof(Vertex, texCoord);
return attributeDescriptions;
}
bool operator==(const Vertex& other) const {
return pos == other.pos && color == other.color && texCoord == other.texCoord;
}
};
const uint32_t WIDTH = 800;