1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00
DDrawCompat/DDrawCompat/D3dDdiAdapterFuncsVisitor.h
2016-10-23 15:24:34 +02:00

26 lines
410 B
C++

#pragma once
#define CINTERFACE
#include <d3d.h>
#include <d3dumddi.h>
#include "DDrawVtableVisitor.h"
struct D3dDdiAdapterFuncsIntf
{
D3DDDI_ADAPTERFUNCS* lpVtbl;
};
template <>
struct DDrawVtableForEach<D3DDDI_ADAPTERFUNCS>
{
template <typename Vtable, typename Visitor>
static void forEach(Visitor& visitor)
{
DD_VISIT(pfnGetCaps);
DD_VISIT(pfnCreateDevice);
DD_VISIT(pfnCloseAdapter);
}
};