From 12397534f8ad3e9f7c8ae68c9c1b35d16f5f83cb Mon Sep 17 00:00:00 2001 From: Sergey Kosarevsky Date: Fri, 30 Aug 2024 23:31:04 -0700 Subject: [PATCH] Added `VertexInput::operator==()` --- lvk/LVK.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lvk/LVK.h b/lvk/LVK.h index 4127b0a577..5c785cb2ab 100644 --- a/lvk/LVK.h +++ b/lvk/LVK.h @@ -543,6 +543,10 @@ struct VertexInput final { } return n; } + + bool operator==(const VertexInput& other) const { + return memcmp(this, &other, sizeof(VertexInput)) == 0; + } }; struct ColorAttachment {