tests: Clean up some MSVC++ compiler warnings
Known issues running tests on Windows:
- Compiler warnings from gtest that we haven’t spent the time to figure out
- Tests don’t run in place - you need to have them in the same directory with vulkan.dll,
gtest.dll, and if MSVC++ is not installed, the MSVC++ runtime dlls. If you want to use
the --compare-images option to vk_render_tests, you will need the “golden”
folder with golden images.
- vk_layer_validation_tests will fail unless you specify VK_LAYER_NAMES as Validation
in the registry or environment. You will also need to specify VK_LAYERS_PATH to point
to the layer dlls. The mismatched type validation test will fail regardless as the
check it is testing for did not make it into the SDK branch
- Known issue of parameter checker for CreateDepthStencilView expecting msaaResolveSubresource
to be valid even if msaa isn’t active
- Problem with runtime assert or hang in shader tracker - for now just remove the
shader checker files from your VK_LAYERS_PATH location.
diff --git a/tests/render_tests.cpp b/tests/render_tests.cpp
index b7472e9..911fded 100644
--- a/tests/render_tests.cpp
+++ b/tests/render_tests.cpp
@@ -1831,7 +1831,7 @@
ASSERT_NO_FATAL_FAILURE(InitState());
ASSERT_NO_FATAL_FAILURE(InitViewport());
- m_depthStencil->Init(m_device, m_width, m_height);
+ m_depthStencil->Init(m_device, (int32_t)m_width, (int32_t)m_height);
VkConstantBufferObj meshBuffer(m_device,sizeof(g_vb_solid_face_colors_Data)/sizeof(g_vb_solid_face_colors_Data[0]),
sizeof(g_vb_solid_face_colors_Data[0]), g_vb_solid_face_colors_Data);
@@ -2604,7 +2604,7 @@
ASSERT_NO_FATAL_FAILURE(InitState());
ASSERT_NO_FATAL_FAILURE(InitViewport());
- m_depthStencil->Init(m_device, m_width, m_height);
+ m_depthStencil->Init(m_device, (int32_t)m_width, (int32_t)m_height);
VkConstantBufferObj meshBuffer(m_device, num_verts,
sizeof(g_vb_texture_Data[0]), g_vb_texture_Data);