From ad8294e521487b3940d38d8b74d3f4f3435b3698 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Mon, 8 Jan 2024 22:37:19 +1000 Subject: [PATCH] GS: Remove unused vertex types --- pcsx2/GS/Renderers/Common/GSVertex.h | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/pcsx2/GS/Renderers/Common/GSVertex.h b/pcsx2/GS/Renderers/Common/GSVertex.h index 17b7d27dc2..56ba05dbcc 100644 --- a/pcsx2/GS/Renderers/Common/GSVertex.h +++ b/pcsx2/GS/Renderers/Common/GSVertex.h @@ -8,8 +8,6 @@ #include "GS/Renderers/HW/GSVertexHW.h" #include "GS/Renderers/SW/GSVertexSW.h" -#pragma pack(push, 1) - struct alignas(32) GSVertex { union @@ -51,10 +49,7 @@ struct alignas(32) GSVertex #endif }; -struct GSVertexP -{ - GSVector4 p; -}; +static_assert(sizeof(GSVertex) == 32); struct alignas(32) GSVertexPT1 { @@ -64,10 +59,5 @@ struct alignas(32) GSVertexPT1 union { u32 c; struct { u8 r, g, b, a; }; }; }; -struct GSVertexPT2 -{ - GSVector4 p; - GSVector2 t[2]; -}; +static_assert(sizeof(GSVertexPT1) == sizeof(GSVertex)); -#pragma pack(pop)