Skip to content

Commit

Permalink
update compute and merge alpha skip
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-Leo-Smith committed Jan 13, 2024
1 parent 4fb8977 commit 52dd56f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/compute
Submodule compute updated 302 files
4 changes: 2 additions & 2 deletions src/util/loop_subdiv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,13 @@ SubdivMesh loop_subdivide(luisa::span<const Vertex> vertices,
luisa::vector<SDVertex *> vs;
luisa::vector<SDFace *> faces;
// Allocate _LoopSubdiv_ vertices and faces
auto verts = luisa::make_unique<SDVertex[]>(vertices.size());
luisa::vector<SDVertex> verts(vertices.size());
for (auto i = 0u; i < vertices.size(); ++i) {
verts[i] = SDVertex{vertices[i].position()};
vs.emplace_back(&verts[i]);
}
auto nFaces = triangles.size();
auto fs = luisa::make_unique<SDFace[]>(nFaces);
luisa::vector<SDFace> fs(nFaces);
for (int i = 0; i < nFaces; ++i) {
fs[i].baseTriangle = i;
faces.emplace_back(&fs[i]);
Expand Down

0 comments on commit 52dd56f

Please sign in to comment.