From 0a882c4b85423a170455f05a52d18f7fa7c9220b Mon Sep 17 00:00:00 2001 From: Quentin LADEVIE Date: Sun, 22 Jan 2023 17:59:24 +0100 Subject: Api test bindless and command buffers --- include/vec3.hpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'include/vec3.hpp') diff --git a/include/vec3.hpp b/include/vec3.hpp index 2fec69e..75b67d2 100644 --- a/include/vec3.hpp +++ b/include/vec3.hpp @@ -2,6 +2,14 @@ #define __VEC3_HPP_ #include +#include + +struct vec3u { + union { + uint32_t vec[3]; + uint32_t x, y, z; + }; +}; class vec3 { public: @@ -24,6 +32,10 @@ class vec3 { vec3& operator/=(float numerator); + vec3 operator<(const vec3& vec) const; + + vec3 operator>(const vec3& vec) const; + float operator[](int axis); [[nodiscard]] float length() const; @@ -34,10 +46,6 @@ class vec3 { [[nodiscard]] vec3 cross(const vec3& vec) const; - [[nodiscard]] vec3 min(const vec3& vec) const; - - [[nodiscard]] vec3 max(const vec3& vec) const; - vec3& normalize(); [[nodiscard]] bool near_zero() const; -- cgit v1.3