Merge pull request #914 from asuessenbach/DesignatedInitializer

Extend test on designated initializers
This commit is contained in:
Andreas Süßenbach 2021-03-22 17:09:54 +01:00 committed by GitHub
commit 01e9197a9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,6 +25,29 @@
# 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";