feat: multithread building vbo

This commit is contained in:
parker
2025-08-03 03:47:51 +01:00
parent 488ff9ff72
commit 40c37438ce
4 changed files with 59 additions and 54 deletions

View File

@@ -31,14 +31,15 @@ public:
std::vector<bt::Vector3> derivePointNormals();
HeMesh computeHalfEdgeMesh();
// returns the first vertex of the primitive
unsigned int getPrimStartVertex(ga::Offset primOffset);
void addFace(std::initializer_list<ga::Offset> pointOffsets);
ga::Offset getPrimStartVertex(ga::Offset primOffset) const;
bt::Vector3 getPosFromVert(ga::Offset vertexOffset) const;
bt::Vector3 getPointPos(ga::Offset pointOffset) const;
unsigned int getPrimVertCount(ga::Offset primOffset) const;
ga::Offset getNumPrims() const;
ga::Offset getNumVerts() const;
void computePrimStartVertices();
private:
using attribVector = std::vector<std::shared_ptr<ga::Attribute>>;
attribVector& getAttributeStore(ga::AttributeOwner& owner);