Commit Graph

32 Commits

Author SHA1 Message Date
Andreas Süßenbach
6604f5a1d9
Make generated headers resistant to missing definition of NOMINMAX for windows builds. (#1906) 2024-06-17 14:51:12 +02:00
Andreas Süßenbach
4557f02974
Extend vk::su::createInstance to also take a vk::InstanceCreateFlagBits. (#1888) 2024-06-04 16:35:52 +02:00
Andrew H. Cox
df42194eec
Fixed Validation Error for Zero MaxImageCount (#1844)
Correctly handle a zero max image count in VkSurfaceCapabilitiesKHR
which indicates no upper limit to the number of images in a swapchain.
Fixes validation error VUID-VkSwapchainCreateInfoKHR-minImageCount-01271
2024-04-11 08:44:50 +02:00
Andreas Süßenbach
a6b2199409
Change samples from resetting command buffers to resetting command pool (#1638) 2023-08-14 16:09:11 +02:00
Andreas Süßenbach
87936f9bc8
Resolve a validation layer warnings on destruction order of Image/Buffer and bound DeviceMemory. (#1636) 2023-08-08 13:40:56 +02:00
asuessenbach
5480d192f5 Refactor the CMakeLists for all the samples; use vulkan.hpp/vulkan_raii.hpp as precompiled header. 2022-08-10 15:29:28 +02:00
asuessenbach
06697b4442 Removed helper function createDebugUtilsMessengerEXT from utils.hpp as well. 2022-08-04 11:13:06 +02:00
asuessenbach
056abda3e2 Reduce number of included headers 2022-07-27 16:39:37 +02:00
asuessenbach
0fb855a4a2 Resolve validation layer issues with some samples. 2022-05-02 11:36:36 +02:00
asuessenbach
5fe410279a Change ColumnLimit with clang-format from 120 to 160. 2022-02-28 10:11:04 +01:00
Patrick Gordon
8ae472d020 fix numeric_limits not found, include <limits> in samples/utils.hpp 2021-07-22 22:30:56 +01:00
asuessenbach
2cb1c19c7f Introduce raii-compliant handle wrapper classes. 2021-02-22 16:19:12 +01:00
asuessenbach
2e95313c1d fix some warnings (errors) on release build. 2020-10-20 10:05:18 +02:00
asuessenbach
8d1c84b3f5 Set warnings as errors for the generator, the samples, and the tests. 2020-10-14 17:44:16 +02:00
Markus Tavenrath
57555edfb2 Fix warnings and errors on clang-3.9 2020-05-18 14:05:51 +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
0ea8a527ba Introduce ArrayWrapper?D, replacing ConstExpression?DArrayCopy
+ no explicit copy constructor of structs needed any more
+ removed assignment operator of structs that don't hold a const sType member (for those, we still need the assignment operator!)
+ simplified operator==() of structs (pre C++20)
+ resolved some 32bit warnings
2020-03-25 12:35:35 +01:00
mocabe
590fc89fb5 [samples] Add missing VKAPI_ATTR and VKAPI_CALL for debug callback functions 2020-03-20 03:56:18 +09: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
c06a3300f6 Add a couple of new samples, improved some others: (#414)
new:
- InstanceVersion: print out the instance version
- PhysicalDeviceExtensions: print out the device specific extensions
- PhysicalDeviceFeatures: print out the device specific features
- PhysicalDeviceGroups: print out the device groups (interesting with SLI)
- PhysicalDeviceMemoryProperties: print out the device specific memory properties
- PhysicalDeviceQueueFamilyProperties: print out the device specific queue family properties
- SurfaceCapabilities: print out the surface specific capabilities
- SurfaceFormats: print out the supported surface specific formats
improved:
- InstanceExtensionProperties: print out the instance extensions alphabetically
- InstanceLayerProperties: removed an unused local function
- RayTracing: improved fence usage
2019-10-28 15:36:21 +01:00
Andreas Süßenbach
9df0fac638 Use VK_EXT_debug_utils instead of deprecated VK_EXT_debug_report. (#389) 2019-09-25 11:56:46 +02:00
Andreas Süßenbach
ecfaf9a0df Add sample RayTracing. (#361) 2019-07-25 13:52:09 +02:00
Andreas Süßenbach
36691e4946 Add sample ValidationCache; slightly adjust vk::su::createInstance. (#357) 2019-07-09 09:25:48 +02:00
Andreas Süßenbach
5414a2e232 Add sample TexelBuffer; adjust vk::su::updateDescriptorSets (#352) 2019-07-03 09:23:56 +02:00
Andreas Süßenbach
d811c3a7e2 Add sample Template; some generalization in utils; some minor improvements in some samples. (#349)
* Add samples SecondaryCommandBuffer and SeparateImageSampler.

+ made some helper functions more explicit.

* Add sample Template, some generalizations in utils, some minor improvements in various samples.
2019-06-25 09:47:27 +02:00
Andreas Süßenbach
7900c655f3 Add samples SecondaryCommandBuffer and SeparateImageSampler. (#331)
+ made some helper functions more explicit.
2019-05-21 15:44:52 +02:00
Andreas Süßenbach
5ce8ae7fd0 Add samples OcclusionQuery, PipelineCache, PipelineDerivative, PushConstants, and PushDescriptors. (#325)
+ some minor changes in some samples, math, shaders, and utils.
2019-05-09 15:25:40 +02:00
Andreas Süßenbach
1a7779e75b Add samples InstanceExtensionProperties, InstanceLayerExtensionProperties, InstanceLayerProperties, MultipleSets (#320)
+ slightly adjust some other files.
2019-04-15 10:18:58 +02:00
Andreas Süßenbach
f7ec6041b3 Add samples DynamicUniform, EnableValidationWithCallback, EnumerateDevicesAdvanced, Events (#313)
+ slightly adjust some other samples.
2019-04-01 10:06:49 +02:00
Andreas Süßenbach
2d8483e06f Add samples 16_Vulkan_1_1, CopyBlitImage, CreateDebugReportCallback, DrawTexturedCube (#304)
+ slightly adjust some other samples.
2019-03-26 12:24:36 +01:00
Andreas Süßenbach
cd8e5283c3 Extend set of samples (#296)
+ 12_InitFrameBuffers, 13_InitVertexBuffer, 14_InitPipeline, 15_DrawCube;
+ extend utilities and add utilities on geometries, math, and shaders
+ slightly adjust some other samples
2019-03-15 10:40:45 +01:00
Andreas Süßenbach
f0dc8d6f38 Cleanup on Samples (#295)
- introduced samples/utils functions in namespace vk::su (vulkan sample utils)
- introduced usage of debugReportCallback
2019-03-05 08:59:40 +01:00