summaryrefslogtreecommitdiffstats
path: root/Tests/IncludeTest
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/IncludeTest')
-rw-r--r--Tests/IncludeTest/GraphicsEngineVk/EngineFactoryVkH_test.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/Tests/IncludeTest/GraphicsEngineVk/EngineFactoryVkH_test.c b/Tests/IncludeTest/GraphicsEngineVk/EngineFactoryVkH_test.c
index fa7c9c0b..3751e7df 100644
--- a/Tests/IncludeTest/GraphicsEngineVk/EngineFactoryVkH_test.c
+++ b/Tests/IncludeTest/GraphicsEngineVk/EngineFactoryVkH_test.c
@@ -25,6 +25,8 @@
* of the possibility of such damages.
*/
+#include <string.h>
+
#ifndef ENGINE_DLL
# define ENGINE_DLL 1
#endif
@@ -41,13 +43,15 @@ void TestEngineFactoryVk_CInterface()
IEngineFactoryVk* pFactory = Diligent_GetEngineFactoryVk();
#endif
- struct EngineVkCreateInfo EngineCI = {0};
- IRenderDevice* pDevice = NULL;
- IDeviceContext* pCtx = NULL;
+ EngineVkCreateInfo EngineCI;
+ memset(&EngineCI, 0, sizeof(EngineCI));
+ IRenderDevice* pDevice = NULL;
+ IDeviceContext* pCtx = NULL;
IEngineFactoryVk_CreateDeviceAndContextsVk(pFactory, &EngineCI, &pDevice, &pCtx);
- struct SwapChainDesc SCDesc = {0};
- void* pNativeWndHandle = NULL;
- ISwapChain* pSwapChain = NULL;
+ SwapChainDesc SCDesc;
+ memset(&SCDesc, 0, sizeof(SCDesc));
+ void* pNativeWndHandle = NULL;
+ ISwapChain* pSwapChain = NULL;
IEngineFactoryVk_CreateSwapChainVk(pFactory, pDevice, pCtx, &SCDesc, pNativeWndHandle, &pSwapChain);
}