Commit Graph

89 Commits

Author SHA1 Message Date
asuessenbach
f9ad86aef8 Remove deprecated implicit-cast operators on vk::ResultValue. 2022-05-03 09:47:58 +02:00
Andreas Süßenbach
828ac8e246
Merge pull request #1288 from phantom10111/array-proxy-with-raw-arrays
Add ArrayProxy constructors with support for raw array with size
2022-04-19 17:38:31 +02:00
phantom10111
5df998c0d6 Add ArrayProxy constructors with support for raw array with size
There's a little known C language family feature, which makes it
possible to take a pointer or reference to an array with size. Use this
feature to add constructors to ArrayProxy and ArrayProxyNoTemporaries
which can wrap raw arrays and deduce their size automatically.
2022-04-19 11:49:09 +02:00
phantom10111
9e95c0072d Make type conversions implicit for dispatchable handles
Vulkan handles are not typesafe on 32-bit platforms, but only for
non-dispachable handles. Dispatchable handles are opaque struct pointers
on all platforms, and thus typesafe.

This commit makes all conversions for dispatchable handles implicit,
regardless of VULKAN_HPP_TYPESAFE_CONVERSION setting.
2022-04-15 11:24:30 +02:00
Simon Aittamaa
c0c4b32d02
Update README.md
Fix invalid markdown.
2022-04-08 11:18:43 +02:00
asuessenbach
1c39502170 Extract trait functions on vk::Format into the additional header vulkan_format_traits.hpp. 2022-02-21 10:11:25 +01:00
asuessenbach
3e1e23914e Hide functions reflect() behind VULKAN_HPP_USE_REFLECT. 2022-02-17 09:53:32 +01:00
asuessenbach
815afe1f70 Introduce trait function componentName() and componentNumericFormat() on vk::Format. 2022-02-15 14:47:38 +01:00
asuessenbach
c25e890527 Remove support of all functions marked as deprecated. 2022-02-07 10:09:46 +01:00
asuessenbach
0331bc01b3 Fix two typos in Readme.md 2022-01-18 12:22:34 +01:00
asuessenbach
cdb64cdefd Generate std::hash specializations into the new file vulkan_hash.hpp, requiring C++14 for std::hash specializations of the vulkan structures. 2021-12-13 17:00:00 +01:00
asuessenbach
3515c720fc Introduce support of std::hash for vk-structures. 2021-12-02 23:28:26 +01:00
asuessenbach
5d5182ce70 Introduce a couple of trait functions on vk::Format. 2021-11-29 10:00:19 +01:00
asuessenbach
bf73d74aa9 Remove deprecated versions of function PhysicalDevice::enumerateQueueFamilyPerformanceQueryCountersKHR 2021-11-16 13:29:50 +01:00
Stefan
dc6858d193
Slightly simplified setup instructions
On one hand the erradication of a step simplifies the whole procedure, on the other removing the non-functional `-G` template will allow simply copy & pasting the entire command without any need for modifications since `-G` isn't explicitely required most of the time.
2021-11-12 03:08:52 +01:00
David Neto
938d9e60e0 Use and recommend clang-format-11, not clang-format-10
Also:
- Fix the numbered list formatting in the README.md
- Describe the -DVULKAN_HPP_RUN_GENERATOR=ON option

Fixes: #1116
2021-10-25 12:45:39 -04:00
asuessenbach
a8a9e0271c Extend description for define VULKAN_HPP_DISABLE_ENHANCED_MODE in Readme.md. 2021-10-25 13:51:22 +02:00
asuessenbach
c3f32b8538 Introduce constructors on nullptr_t for the RAII handle classes. 2021-10-11 17:49:13 +02:00
asuessenbach
dea1345852 Introduce VULKAN_HPP_STATIC_ASSERT. 2021-09-07 13:47:18 +02:00
Ali Emre Gülcü
de85e5396b Fix a typo on README.md 2021-09-06 11:43:28 +03:00
Hannes Harnisch
41fea04504 Updating configuration info in README.md 2021-07-05 16:17:13 +02:00
asuessenbach
9fbd3e3552 Introduce VULKAN_HPP_RAII_ENABLE_DEFAULT_CONSTRUCTORS 2021-06-17 17:11:12 +02:00
Mehmet Oguz Derin
5fe7d29f90 Fix a typo in README.md
This commit replaces `excactly` with `exactly` as a typo fix.
2021-05-25 11:30:00 +02:00
asuessenbach
2cb1c19c7f Introduce raii-compliant handle wrapper classes. 2021-02-22 16:19:12 +01:00
asuessenbach
f06269c13c Correct documentation on DispatchLoaderDynamic 2021-02-01 12:28:36 +01:00
Arpit Agarwal
c848f0e6e8
Update Vookoo introduction article link 2021-01-28 19:48:15 -05:00
asuessenbach
3a6b80f916 Mention connection of VULKAN_HPP_STORAGE_API and VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE in the README.md 2021-01-28 09:23:14 +01:00
asuessenbach
376dd7aff3 Guard definition of VULKAN_HPP_STORAGE_API by an if !defined(); extend internal support to gcc and clang.
+ mention that define in the README.md
2021-01-14 14:32:01 +01:00
asuessenbach
983c8795e6 Introduce configuration flag VULKAN_HPP_FLAGS_MASK_TYPE_AS_PUBLIC. 2021-01-12 10:04:13 +01:00
asuessenbach
28422de041 Introduce VULKAN_HPP_NO_SPACESHIP_OPERATOR to disable operator<=>() for all structs and classes. 2020-11-17 15:31:13 +01:00
asuessenbach
a8c15596da Add section on deprecated elements to README.md. 2020-10-28 13:54:53 +01:00
asuessenbach
0783f19332 Add some words on the type traits provided by vulkan.hpp 2020-10-08 11:49:01 +02:00
asuessenbach
2a5d8f9dd9 Add list of all defines used to configure vulkan.hpp to README.md 2020-08-26 11:32:53 +02:00
asuessenbach
ee389e42e3 Introduce VULKAN_HPP_NO_DEFAULT_DISPATCHER to not have a default argument for the last argument of each function. 2020-08-13 16:46:42 +02:00
Markus Tavenrath
6f4e1e41a7 Add documentation on how to build the generator, tests, and samples. 2020-08-13 11:38:21 +02:00
Martin Hammerchmidt
67cedbb531
Update README.md 2020-08-10 11:04:26 +02:00
Martin Hammerchmidt
dd2bcdf719
Update README.md 2020-08-06 14:13:03 +02:00
Martin Hammerchmidt
85f049ba74
Update README.md 2020-08-06 14:11:03 +02:00
Martin Hammerchmidt
57785601af
Update README.md
Fix a few typo on 2 examples (didn't  check more examples)
2020-08-06 13:47:50 +02:00
asuessenbach
503e6ce500 Fix some issues with sample code in readme.md. 2020-07-29 12:25:52 +02:00
asuessenbach
a78940bced Correct sample code on flags in readme.md. 2020-07-29 11:53:56 +02:00
asuessenbach
fba2516d9c Remove implicit cast operators on ResultValue<T>
As it turned out to not provide a complete solution to the C++-API-change issue on logical-change of the C-API, we simply remove those implicit cast operators. That is, accessing the result and the value need to be explicit.
2020-07-22 16:49:42 +02:00
asuessenbach
4cdc51ba0f Introduce usage of [[nodiscard]] with C++17 2020-07-22 10:59:12 +02:00
Andreas Süßenbach
d4774ad6e8
Merge pull request #649 from mocabe/assert-on-result
Add VULKAN_HPP_ASSERT_ON_RESULT
2020-06-30 09:00:35 +02:00
mocabe
00fc7714f0 [doc] Add short doc for VULKAN_HPP_ASSERT_ON_RESULT 2020-06-30 01:45:59 +09:00
Markus Tavenrath
34076925af Add defines to put the storage for a DispatchLoaderDynamic in a DLL. 2020-06-29 09:21:28 +02:00
asuessenbach
db58507063 Introduce VULKAN_HPP_NO_STRUCT_CONSTRUCTORS so support designated initializers.
You have to define VULKAN_HPP_NO_STRUCT_CONSTRUCTORS to remove all the struct constructors from vulkan.hpp, so that you can use designated initializers on them.
Of course, makes only sense with C++20.
2020-06-24 11:28:43 +02:00
asuessenbach
f5e59484a6 Introduce usage of clang-format to format vulkan.hpp and the other sources. 2020-04-23 10:55:02 +02:00
asuessenbach
a5e8a7ccb8 Update to and adjustments for VK_HEADER_VERSION 136. 2020-03-30 12:13:07 +02:00
Andreas Süßenbach
afe4e6b03f
Extent readme on samples and tests. (#449) 2019-12-03 10:15:06 +01:00