Extendend test on designated initializers

This commit is contained in:
asuessenbach 2021-03-22 10:24:07 +01:00
parent 1ab12d2ffe
commit fe846ff445

View File

@ -21,10 +21,33 @@
#include <iostream>
#if defined(__clang__) || defined(__GNUC__)
#pragma GCC diagnostic ignored "-Wunused-variable"
#if defined( __clang__ ) || defined( __GNUC__ )
# pragma GCC diagnostic ignored "-Wunused-variable"
#endif
class MyVulkanTest
{
public:
MyVulkanTest();
private:
vk::ApplicationInfo applicationInfo;
};
MyVulkanTest::MyVulkanTest()
: applicationInfo{ .pApplicationName = "My Application",
.applicationVersion = VK_MAKE_VERSION( 0, 0, 1 ),
.pEngineName = "My Engine",
.engineVersion = VK_MAKE_VERSION( 0, 0, 1 ),
.apiVersion = VK_API_VERSION_1_0 }
{
this->applicationInfo = vk::ApplicationInfo{ .pApplicationName = "My Application",
.applicationVersion = VK_MAKE_VERSION( 0, 0, 1 ),
.pEngineName = "My Engine",
.engineVersion = VK_MAKE_VERSION( 0, 0, 1 ),
.apiVersion = VK_API_VERSION_1_0 };
}
int main( int /*argc*/, char ** /*argv*/ )
{
char const * appName = "DesignatedInitializers";