mocabe
837aac5499
Fix formatting
2020-02-06 10:12:08 +01:00
mocabe
955b7330ba
CI: Enable gcc5 with samples disabled
2020-02-06 10:12:08 +01:00
mocabe
32d0bc6843
samples: Remove C++14 codes
2020-02-06 10:12:08 +01:00
mocabe
1572c0b1ba
Clean EOF of some files
2020-02-06 10:12:08 +01:00
mocabe
f0e16b701f
CI: Enable CI build for tests and samples on Linux
2020-02-06 10:12:08 +01:00
mocabe
891ca21334
CMake: Enable C++14 for samples
2020-02-06 10:12:08 +01:00
mocabe
a7e2cf152e
CMake: Add SAMPLES_BUILD_ONLY_DYNAMIC option
2020-02-06 10:12:08 +01:00
mocabe
bb40388d34
CMake: Set CMAKE_CXX_STANDARD to 11
2020-02-06 10:12:08 +01:00
mocabe
dcb6e7be42
Update submodules used in samples
2020-02-06 10:12:08 +01:00
Andreas Süßenbach
cf39cd4f0c
Introduce helper function check() to ease throwing on spec error detection. ( #502 )
...
* Introduce helper function check() to ease throwing on spec error detection.
* Use some more checks
* Some more checks
2020-02-04 10:35:33 +01:00
Andreas Süßenbach
4d53dac22b
Replace usage of std::forward_as_tuple by std::tie. ( #501 )
2020-02-03 15:55:06 +01:00
Andreas Süßenbach
8c9e881dfe
Change init functions of DispatchLoaderDynamic to use a DynamicLoader specified by a template argument. ( #503 )
2020-02-03 15:52:53 +01:00
Andreas Süßenbach
d0e3b3a5e1
Merge pull request #499 from tomilov/master
...
Add missing initialization of dynamic dispatcher in NoExceptions test
2020-02-03 10:20:13 +01:00
tomilov
d61800c3be
remove unnecessary condition
2020-01-30 21:05:44 +05:00
tomilov
bbbbf6b751
add missing initialization of dynamic dispatcher
2020-01-30 14:46:20 +05:00
Anatoliy V. Tomilov
7efe3d096b
use VULKAN_HPP_ASSERT instead of raw assert in generated code ( #498 )
...
* use VULKAN_HPP_ASSERT instead of raw assert in generated code
* update generated vulkan.hpp to match generator changes
2020-01-30 09:57:51 +01:00
Andreas Süßenbach
bca5adc12d
Change return of StructureChain::get() from tuple of values to tuple of references ( #495 )
...
Resolves #494
2020-01-29 10:00:41 +01:00
mocabe
b6a190f4a2
Building samples for Linux ( #491 )
...
* CMake: Fix SAMPLES_BUILD and TESTS_BUILD
* CMake: Enable sample build on linux
* samples: Use glfw for window creation
* samples: Fix include order
* samples: Support new window handling
* samples: Add build target for util
* samples: Update CMake scripts to use util target
* samples: Add WindowData to manage unique window
* samples: Surface handling using WIndowData
* sampels: Remove call for vk::su::destroyWindow()
* CMake: FIx more options
* samples: Build SurfaceCapabilities only on WIN32
* samples: Fixed RayTracing sample to build on Linux
* samples: Fix wrong check on SurfaceProtectedCapabilitiesKHR
This also fixes compilation with MinGW gcc/clang
* CMake: check CMAKE_SYSTEM_NAME for Linux samples
* CMake: Add source group for utils
* samples: Fix potential bugs
* samples: Reduce warnings on gcc/clang
* samples: Fix missmatched new/free() which is UB
* samples: Add missing initialization for dynamic dispatcher
* samples: Remove unnecessary dispacther construct
Co-authored-by: Andreas Süßenbach <asuessenbach@nvidia.com>
2020-01-28 10:16:10 +01:00
Andreas Süßenbach
f1668a6e28
Remove template parameter defaultValue from Flags. ( #492 )
...
Flags always default to just no FlagBits set.
2020-01-21 12:01:35 +01:00
Andreas Süßenbach
33b244859b
Add specific initialization of Flags and FlagBits. ( #489 )
...
Resolves #488 .
2020-01-16 12:12:31 +01:00
Alex Hirsch
bb5b19deda
Fix regression in ObjectDestroy default argument ( #485 )
2020-01-16 08:50:50 +01:00
Andreas Süßenbach
7e81c7bddf
Improve construction of success check and return type of enhanced functions returning a vector of UniqueHandles ( #484 )
2020-01-15 16:54:55 +01:00
Andreas Süßenbach
129f82dd90
Extend check to determine the returnParameterIndex. ( #482 )
2020-01-14 16:06:50 +01:00
Andreas Süßenbach
a75cf874c7
Filter aliases of enum values that originally belong to aliases of the enum class. ( #483 )
2020-01-14 16:05:05 +01:00
Andreas Süßenbach
e49f02013a
Mark every non-enhanced function with VULKAN_HPP_NOEXCEPT. ( #481 )
2020-01-14 10:37:54 +01:00
Andreas Süßenbach
65450515ee
Added a couple of features: ( #480 )
...
+ support for 2D arrays
+ support for bitfield members in a structure (slightly restricted: no default member initializers and for any vk::*FlagBits member Vk*FlagBits would be used)
+ aliases to enums are listed by using declarations
+ for aliases to handle types, an aliased Unique handle type is added by a using declaration
+ a check in determining an enhanced return type is extended
2020-01-13 15:00:59 +01:00
Andreas Süßenbach
979af1b46e
Added test on existence of ObjectType enum value corresponding to handle type in extensions. ( #477 )
2020-01-10 10:18:55 +01:00
Andreas Süßenbach
8d62969b4d
Fix arraySize for array-valued return parameter. ( #476 )
2020-01-09 16:21:41 +01:00
Andreas Süßenbach
1911d18790
Completed set of operators on Flags ( #475 )
2020-01-09 09:44:41 +01:00
Andreas Süßenbach
55517484be
Add optional attribute "specialuse", currently ignored. ( #474 )
2020-01-08 14:29:26 +01:00
Markus Tavenrath
d5f58e07dd
Add error message when referencing undefined type requirements ( #473 )
2020-01-07 16:50:46 +01:00
Andreas Süßenbach
4ee2d61ef6
Improve operator==() of structs ( #472 )
...
When a struct holds a fixed size array of stuff, and the member variable right before that array is the count (determined by its specific name) for that array, we now only compare that number of stuff.
Resolves #456
2020-01-07 16:28:50 +01:00
Andreas Süßenbach
0b3af1ee76
Add is_error_code_enum only if VULKAN_HPP_NO_EXCEPTIONS is not defined. ( #471 )
2020-01-06 15:55:31 +01:00
Arthur Brainville
4320950db1
Update EnableValidationWithCallback.cpp ( #466 )
...
Quick patch that fixes the `EnableValidationWithCallback` sample:
There's no `str()` method here, should use `c_str()`;
*but* also, you can print the std::string directly to `std::cout`.
Patches remove `.str()` from printing line when WIN32 is not defined.
2020-01-06 12:16:35 +01:00
nvaara
196de24461
fixed vertexBindingDescription ( #465 )
2020-01-06 12:12:12 +01:00
Markus Tavenrath
499d4bb33d
Bring back default arguments to ObjectDestroy class. Update header to Vulkan 1.130 ( #468 )
...
Fix issue #467
2020-01-03 10:59:59 +01:00
Andreas Süßenbach
021c7499a0
Cleanup on usage of static vs. dynamic loading ( #462 )
2019-12-23 08:45:40 +01:00
Andreas Süßenbach
18febd6237
Add usage of DebugUtilsMessenger in vk::su::createInstance ( #461 )
2019-12-19 14:00:51 +01:00
Andreas Süßenbach
0280efc78c
Corrected image layout and descriptor set handling in RayTracing sample. ( #460 )
2019-12-19 13:59:48 +01:00
Andreas Süßenbach
7da1c8baf0
Samples: Explicitly set vk::PipelineMultisampleStateCreateInfo::rasterizationSamples ( #459 )
2019-12-16 14:51:29 +01:00
Andreas Süßenbach
0b01a8a74c
Introduce default initializers for member variables, simplify default values for constructor arguments ( #455 )
2019-12-12 11:40:21 +01:00
Andreas Süßenbach
3f82338d9f
Fix ambiguous constructor of ObjectDestroy with vk::NoParent. ( #451 )
...
Resolves #450
2019-12-04 08:34:58 +01:00
Andreas Süßenbach
afe4e6b03f
Extent readme on samples and tests. ( #449 )
2019-12-03 10:15:06 +01:00
Andreas Süßenbach
2a05d74c23
Change every occurance of vk:: to VULKAN_HPP_NAMESPACE:: ( #448 )
...
Resolves #447
2019-12-02 10:06:44 +01:00
Andreas Süßenbach
07edfc45d6
Introduce default constructors for UniqueHandle, ObjectDestroy, and ObjectFree ( #446 )
2019-11-28 16:01:22 +01:00
Andreas Süßenbach
f2058303cb
Introduce functions vk::StructureChain::unlink<ClassType>() and vk::StructureChain::relink<ClassType>(). ( #441 )
...
Resolves #439 .
2019-11-28 15:58:15 +01:00
Andreas Süßenbach
e40eb90980
Remove not needed operator==() and operator!=() on *FlagBits ( #442 )
...
Resolves #436
2019-11-27 11:41:21 +01:00
takiyu
7fc627d6b9
Fix lableName typo. ( #440 )
2019-11-26 11:28:57 +01:00
Andreas Süßenbach
d2a116b57f
Correct operator=() by using offsetof instead of sizeof to determine size of memory to copy. ( #437 )
2019-11-19 17:44:16 +01:00
dan sinclair
2bd8e403e8
Add option to install vulkan.hpp header ( #429 )
2019-11-14 10:07:27 +01:00