mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Merge pull request #914 from asuessenbach/DesignatedInitializer
Extend test on designated initializers
This commit is contained in:
commit
01e9197a9c
@ -21,10 +21,33 @@
|
|||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#if defined(__clang__) || defined(__GNUC__)
|
#if defined( __clang__ ) || defined( __GNUC__ )
|
||||||
#pragma GCC diagnostic ignored "-Wunused-variable"
|
# pragma GCC diagnostic ignored "-Wunused-variable"
|
||||||
#endif
|
#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*/ )
|
int main( int /*argc*/, char ** /*argv*/ )
|
||||||
{
|
{
|
||||||
char const * appName = "DesignatedInitializers";
|
char const * appName = "DesignatedInitializers";
|
||||||
|
Loading…
Reference in New Issue
Block a user