summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D11
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-01-27 19:01:19 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-01-27 19:01:19 +0000
commit10cd33e0e314cc02ac9779130b8cf9cc38867b4b (patch)
tree128d77a72818216a081b81bfde0d5e8e92292339 /Graphics/GraphicsEngineD3D11
parentImplemented D3D11 engine C interface (mostly) (diff)
downloadDiligentCore-10cd33e0e314cc02ac9779130b8cf9cc38867b4b.tar.gz
DiligentCore-10cd33e0e314cc02ac9779130b8cf9cc38867b4b.zip
Reworked C interfaces to share declaration with c++
Diffstat (limited to 'Graphics/GraphicsEngineD3D11')
-rw-r--r--Graphics/GraphicsEngineD3D11/interface/EngineFactoryD3D11.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/Graphics/GraphicsEngineD3D11/interface/EngineFactoryD3D11.h b/Graphics/GraphicsEngineD3D11/interface/EngineFactoryD3D11.h
index 13ec43ea..924b5631 100644
--- a/Graphics/GraphicsEngineD3D11/interface/EngineFactoryD3D11.h
+++ b/Graphics/GraphicsEngineD3D11/interface/EngineFactoryD3D11.h
@@ -48,7 +48,7 @@ static const struct INTERFACE_ID IID_EngineFactoryD3D11 =
#if DILIGENT_CPP_INTERFACE
/// Engine factory for Direct3D11 rendering backend.
-class IEngineFactoryD3D11 : public IEngineFactory
+struct IEngineFactoryD3D11 : public IEngineFactory
{
public:
/// Creates a render device and device contexts for Direct3D11-based engine implementation.
@@ -151,23 +151,23 @@ struct IEngineFactoryD3D11Methods
{
void (*CreateDeviceAndContextsD3D11)(struct IEngineFactoryD3D11*,
const struct EngineD3D11CreateInfo* EngineCI,
- class IRenderDevice** ppDevice,
- class IDeviceContext** ppContexts);
+ struct IRenderDevice** ppDevice,
+ struct IDeviceContext** ppContexts);
void (*CreateSwapChainD3D11)(struct IEngineFactoryD3D11*,
- class IRenderDevice* pDevice,
- class IDeviceContext* pImmediateContext,
+ struct IRenderDevice* pDevice,
+ struct IDeviceContext* pImmediateContext,
const struct SwapChainDesc* SCDesc,
const struct FullScreenModeDesc* FSDesc,
void* pNativeWndHandle,
- class ISwapChain** ppSwapChain);
+ struct ISwapChain** ppSwapChain);
void (*AttachToD3D11Device)(struct IEngineFactoryD3D11*,
void* pd3d11NativeDevice,
void* pd3d11ImmediateContext,
const struct EngineD3D11CreateInfo* EngineCI,
- class IRenderDevice** ppDevice,
- class IDeviceContext** ppContexts);
+ struct IRenderDevice** ppDevice,
+ struct IDeviceContext** ppContexts);
void (*EnumerateAdapters)(struct IEngineFactoryD3D11*,
DIRECT3D_FEATURE_LEVEL MinFeatureLevel,
@@ -211,7 +211,7 @@ struct IEngineFactoryD3D11
#if ENGINE_DLL
-typedef class IEngineFactoryD3D11* (*GetEngineFactoryD3D11Type)();
+typedef struct IEngineFactoryD3D11* (*GetEngineFactoryD3D11Type)();
inline GetEngineFactoryD3D11Type LoadGraphicsEngineD3D11()
{
@@ -220,7 +220,7 @@ inline GetEngineFactoryD3D11Type LoadGraphicsEngineD3D11()
#else
-class IEngineFactoryD3D11* DILIGENT_GLOBAL_FUNCTION(GetEngineFactoryD3D11)();
+struct IEngineFactoryD3D11* DILIGENT_GLOBAL_FUNCTION(GetEngineFactoryD3D11)();
#endif