1
0

finish buggy dx11 code

This commit is contained in:
2026-01-04 23:11:58 +08:00
parent a66d3dee8b
commit 7b234ec405
12 changed files with 432 additions and 219 deletions

View File

@@ -39,6 +39,13 @@ namespace Basalt::Presenter {
auto fct = (Fct) GetFunctionPointer(EXPOSE_FUNC_NAME);
return fct();
}
template<typename T>
void DestroyInstance(T* instance) {
using Fct = void (*) (T*);
constexpr char EXPOSE_FUNC_NAME[] = "BSDestroyInstance";
auto fct = (Fct) GetFunctionPointer(EXPOSE_FUNC_NAME);
fct(instance);
}
private:
Handle m_Handle;