Brought in a fix suggested by Amit but still didn't improve perf. I'll use that to see how Tracy works.

This commit is contained in:
Zed A. Shaw 2025-01-18 11:14:00 -05:00
parent 831e15ca18
commit 379ec5846f
2 changed files with 10 additions and 2 deletions

View file

@ -62,8 +62,15 @@ namespace amt {
constexpr RGBA() noexcept = default;
constexpr RGBA(RGBA const&) noexcept = default;
constexpr RGBA(RGBA &&) noexcept = default;
constexpr RGBA& operator=(RGBA const& other) noexcept = default;
constexpr RGBA& operator=(RGBA && other) noexcept = default;
constexpr RGBA& operator=(RGBA const& other) noexcept {
this->m_data.color = other.m_data.color;
return *this;
}
constexpr RGBA& operator=(RGBA && other) noexcept {
this->m_data.color = other.m_data.color;
return *this;
}
constexpr ~RGBA() noexcept = default;

View file

@ -3,6 +3,7 @@
#include "amt/pixel.hpp"
#include "constants.hpp"
#define AMT_LIGHT
using namespace fmt;