From 19112b091826d50e59aa30cd4723e8384fd234e8 Mon Sep 17 00:00:00 2001 From: Qudix <17361645+Qudix@users.noreply.github.com> Date: Sun, 26 May 2024 17:31:16 -0500 Subject: [PATCH] feat: add funcs to `BSGraphics::Utility` --- .../include/RE/Bethesda/BSGraphicsUtility.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/CommonLibF4/include/RE/Bethesda/BSGraphicsUtility.h b/CommonLibF4/include/RE/Bethesda/BSGraphicsUtility.h index cb23bd4a..b207685d 100644 --- a/CommonLibF4/include/RE/Bethesda/BSGraphicsUtility.h +++ b/CommonLibF4/include/RE/Bethesda/BSGraphicsUtility.h @@ -9,6 +9,20 @@ namespace RE namespace RE::BSGraphics::Utility { + inline void ConvertHALFToNiPoint3Stream(const std::uint16_t* a_src, NiPoint3* a_dst, std::uint32_t a_count, std::uint32_t a_stride) + { + using func_t = decltype(&ConvertHALFToNiPoint3Stream); + static REL::Relocation func{ REL::ID(2277113) }; + func(a_src, a_dst, a_count, a_stride); + } + + inline void ConvertNiPoint3ToHALFStream(const NiPoint3* a_src, std::uint16_t* a_dst, std::uint32_t a_count) + { + using func_t = decltype(&ConvertNiPoint3ToHALFStream); + static REL::Relocation func{ REL::ID(2277114) }; + func(a_src, a_dst, a_count); + } + inline std::uint64_t PackVertexData( std::uint32_t a_numVertices, NiPoint3* a_positions,