From e29634fa618cc3bbc8cee60f4f6133385ff2f9c1 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 30 Dec 2022 14:57:39 +0000 Subject: Make Vertex constexpr --- gfx/models/vertex.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gfx/models') diff --git a/gfx/models/vertex.hpp b/gfx/models/vertex.hpp index f2e38f6..095c82f 100644 --- a/gfx/models/vertex.hpp +++ b/gfx/models/vertex.hpp @@ -4,7 +4,7 @@ class Vertex { public: - Vertex(glm::vec3 pos, glm::vec2 texCoord, glm::vec3 normal) : + constexpr Vertex(glm::vec3 pos, glm::vec2 texCoord, glm::vec3 normal) : pos {std::move(pos)}, texCoord {std::move(texCoord)}, normal {std::move(normal)} { } -- cgit v1.2.3