Commit Graph

1666 Commits

Author SHA1 Message Date
asuessenbach
c05772e82d Correct const usage in ConstExpression1DArrayCopy 2020-02-23 00:20:45 +01:00
Jack Andersen
44b1ea9202 Use std::swap for DynamicLibrary move assign 2020-02-21 20:08:03 -10:00
asuessenbach
dc954e0f6d Restructure ConstExpressionNDArrayCopy classes 2020-02-21 09:55:25 +01:00
Andreas Süßenbach
9514dde998
Merge pull request #514 from asuessenbach/arrayCopy
Extend ConstExpression2DArrayCopy to support const T src[N][M].
2020-02-19 19:03:51 +01:00
asuessenbach
0af9093389 Extend ConstExpression2DArrayCopy to support const T src[N][M]. 2020-02-19 18:50:49 +01:00
Andreas Süßenbach
a35cb6ca17
Merge pull request #513 from dj2/sub_modules
Update tinyxml2
2020-02-19 09:42:17 +01:00
Dan Sinclair
0fe05fa95d Update tinyxml2 2020-02-18 09:28:50 -05:00
Andreas Süßenbach
2daf787a63
Merge pull request #508 from jackoalan/dynamic-loader-move
Add move semantics to DynamicLoader
2020-02-18 08:52:56 +01:00
Jack Andersen
b4f482572f Add move semantics to DynamicLoader 2020-02-17 11:52:57 -10:00
Andreas Süßenbach
4ddfb68025
Merge pull request #511 from mtavenrath/bionic
Switch travis distribution from trusty (14.04) to bionic (18.04)
2020-02-17 15:13:03 +01:00
Markus Tavenrath
ceaaba27ad Switch travis distribution from trusty (14.04) to bionic (18.04) 2020-02-17 14:40:23 +01:00
Andreas Süßenbach
b08af45046 Resolve warnings from gcc.
Resolves #505
2020-02-13 10:27:30 +01:00
Andreas Süßenbach
f1d3380e31 Add assignment operator for all structs
Resolves #505
2020-02-13 10:27:30 +01:00
asuessenbach
7feffc1b9d Add/Reshape copy constructors for structs and unions.
Allows usage of constexpr on those constructors.

Resolves #493
2020-02-06 11:15:57 +01:00
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