1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00
DDrawCompat/DDrawCompat/Direct3d/Direct3dVertexBuffer.cpp
2021-03-16 14:13:20 +01:00

28 lines
611 B
C++

#include <Common/CompatVtable.h>
#include <DDraw/ScopedThreadLock.h>
#include <Direct3d/Direct3dVertexBuffer.h>
#include <Direct3d/Visitors/Direct3dVertexBufferVtblVisitor.h>
namespace
{
template <typename Vtable>
constexpr void setCompatVtable(Vtable& /*vtable*/)
{
}
}
namespace Direct3d
{
namespace Direct3dVertexBuffer
{
template <typename Vtable>
void hookVtable(const Vtable& vtable)
{
CompatVtable<Vtable>::hookVtable<DDraw::ScopedThreadLock>(vtable);
}
template void hookVtable(const IDirect3DVertexBufferVtbl&);
template void hookVtable(const IDirect3DVertexBuffer7Vtbl&);
}
}