Commit graph

612 commits

Author SHA1 Message Date
Stephen Saunders
c89d4eb776 Code Review: a) revert TinyGLTF #defines, b) call vkDeviceWaitIdle() in macOS/iOS termination handlers, c) remove OpenMP target_compile_options() in CMakeLists 2022-07-27 01:21:20 -04:00
Stephen Saunders
46b2027dd1 Handle Vulkan / memory cleanup on shutdown for macOS benchmarking case 2022-07-20 12:00:14 -04:00
Stephen Saunders
d9d3e8c1fb ImGui example now shows Vulkan API and driver info, ImGui+TextOverlay+ConditionalRender+gltfSceneRendering examples now support macOS retina displays 2022-07-13 12:24:26 -04:00
Stephen Saunders
bb4281ac24 Update VK_KHR_portability_subset + VK_KHR_portability_enumeration implementations for iOS/macOS support with runtime checks 2022-07-09 11:13:27 -04:00
Stephen Saunders
a184bd7007 Set viewUpdated=true for macOS scroll wheel, open vulkanExamples window in front of Xcode, accept mouse click-through on macOS 2022-07-07 09:57:01 -04:00
Stephen Saunders
8bc8d14cf2 macOS retina scaling fixes, M1 Vulkan vsync workaround, CMakeLists OpenMP path fix for Apple 2022-07-07 09:57:01 -04:00
Stephen Saunders
b2f501dc98 Fix queue family transfer operations between graphics <-> compute queues, generalize getQueueFamilyIndex() to support VkQueueFlags vs. VkQueueFlagBits, computecloth deltaT now based on frameTimer 2022-07-07 09:57:01 -04:00
Stephen Saunders
17aaa7305b Revert to original tDiff calculation, make frame-based tDiff calculation specific to iOS/macOS xcode examples project 2022-07-07 09:57:01 -04:00
Stephen Saunders
cb343c329a Fixes for vulkanExample: frame timing now equals diff between frames for Win & macOS portability, support vsync off rendering on macOS, support swapchain image count change on resize, handle macOS fullscreen; Fixes for xcode example: use PanGestureRecognizer on iOS, add macOS cursor tracking, cleanup Vulkan on shutdown 2022-07-07 09:57:01 -04:00
Stephen Saunders
a1e19ea5de Fix iOS/macOS keycode handling regression for textoverlay example, update and use keycodes.hpp defines for iOS/macOS 2022-07-07 09:57:01 -04:00
Stephen Saunders
8080b7a91b Support iOS touch gestures and iOS Simulator target, reduce translate sensitivity, use key chars vs. key codes in Xcode examples project 2022-07-07 09:57:01 -04:00
Stephen Saunders
ae8ad09f6e Fix VK_KHR_portability_subset validation errors on macOS, fix OpenMP build issues on macOS
(cherry picked from commit d2f6713c418ea5bdd2c3fcee922def5854e534d4)
2022-07-07 09:57:01 -04:00
Stephen Saunders
b1f10d7393 Fix CMakeLists.txt for vulkanExamples.xcodeproj build, fix macOS storyboard for resizable window, set animation rate based on display refresh period 2022-07-07 09:57:01 -04:00
Stephen Saunders
57e650b653 Support right & middle mouse dragging, set macOS frameTimer based on vsync refresh period 2022-07-07 09:57:01 -04:00
Stephen Saunders
a74afb20fc Handle keyboard and mouse events, adjust frameTimer scaling for macOS 2022-07-07 09:57:01 -04:00
Stephen Saunders
28d98b9ee7 Revert changes to vulkanexamplebase.h and expose displayLinkOutputCb() to DemoViewController 2022-07-07 09:57:01 -04:00
Stephen Saunders
2349738013 Changes to build on macOS and animate frames 2022-07-07 09:57:01 -04:00
Rolf Hunt
cb869a3e9a Updated to include VK_HEADER_VERSION check. 2022-06-24 16:44:30 -05:00
Rolf Hunt
753b2614f6 Added config changes to support Vulkan 1.3.216.0 and later with portability bit set on macOS 2022-06-23 15:21:14 -05:00
Sascha Willems
dc8e662b34 Missing include for std::find 2022-05-14 11:47:37 +02:00
Sascha Willems
13d8fc6526 Format selection list 2022-05-14 11:45:44 +02:00
Sascha Willems
570ba6da47 Only apply stencil flag if selected format has a stencil part
Refs #947
2022-05-14 11:44:57 +02:00
jonnxie
fc5ef968cc Fixed potential memory leak bug. 2022-04-18 16:54:21 +08:00
jonnxie
6b316e694f Fixed Mesh class and Model class memory leak. 2022-03-22 11:08:38 +08:00
jonnxie
c15d44e855 Fixed loadNode function memory leak bug. 2022-03-22 10:59:03 +08:00
jonnxie
baa2c16464 Fixed loadAnimation function memory leak bug. 2022-03-22 09:38:39 +08:00
Sascha Willems
821a0659a7
Merge pull request #924 from SaschaWillems/sample_vertexattributes
Add vertex attributes sample
2022-01-22 10:19:24 +01:00
robotchaoX
60ec305bdc fix example oit build for Android failed 2022-01-21 14:13:21 +08:00
Sascha Willems
5f1aac61ca Started working on sample showing comparing separate/interleaved vertex attributes 2021-12-26 18:42:03 +01:00
Sascha Willems
91958acad2 Only destroy ImGui context of != null
Fixes #911
2021-12-15 19:32:47 +01:00
Rajnesh Kanwal
774bb42ceb Fixes memory leak due to ImGui context not being destroyed. 2021-12-04 15:35:07 +00:00
Sascha Willems
3e55366434 Added sample fro dynamic rendering using VK_KHR_dynamic_rendering 2021-11-06 19:45:22 +01:00
Christian Forfang
13ff9e5019
dstAccessMask should be VK_ACCESS_SHADER_READ_BIT 2021-10-16 16:38:55 +02:00
Christian Forfang
33cb572058 Minor fix to access mask
- Given newLayout = LAYOUT_SHADER_READ_ONLY_OPTIMAL, upcoming
  usage is unlikely to be TRANSFER_READ_BIT.
- dstAccessMask = FRAGMENT_SHADER makes more sense
2021-09-05 12:17:12 +02:00
Sascha Willems
3b1ff1eece Ray tracing samples can now also use the UI overlay
General cleanup, changed default settings.overlay value
2021-08-28 12:59:10 +02:00
Sascha Willems
ab2d4060d2
Merge pull request #860 from per-mathisen-arm/benchmark1frame
Add option to only render a given number of frames.
2021-07-31 13:05:35 +02:00
Per Inge Mathisen
488aa9c220 Fix rayquery demo to not require full raytracing support. 2021-07-29 12:22:47 +02:00
Per Inge Mathisen
5f72b0faa3 Add option to only render a given number of frames.
This is useful on very slow targets, such as GPU emulators.
2021-07-29 12:15:58 +02:00
Sascha Willems
0887881eac
Merge pull request #832 from per-mathisen-arm/master
Add support for rendering with the headless extension
2021-06-05 15:10:30 +02:00
Sascha Willems
434546625f Updated Vulkan Headers to 1.2.178
Don't use VK_NULL_HANDLE for queue family
Fixes #839
2021-05-17 20:39:41 +02:00
Tomek Bury
b212fa0840 Don't fail on startup when input device(s) are not present
The wl_seat protocol may not be available unless input devices (keyboard,
mouse) are connected to the compositor on the target system.

Warn but continue executing examples with default settings.
2021-05-04 17:31:34 +01:00
Per Inge Mathisen
45ba247b55 Add support for rendering for the headless extension 2021-04-27 13:53:07 +02:00
Sascha Willems
a2a604be47 Fix benchmark options
Fixes #815
2021-03-13 14:12:35 +01:00
Sascha Willems
35288a6f2b Added comment on oldSwapChain 2021-03-02 07:33:18 +01:00
Per Inge Mathisen
5042f46388 Fix compile warning and crash in SSAO test.
emptyTexture was not initialized, so when destroying it the
destroy Vulkan functions were called with bogus pointers.
2021-02-15 12:30:38 +01:00
Sascha Willems
adfc509ebe
Merge pull request #795 from Lucodivo/patch-1
Remove unnecessary comparison
2021-01-29 16:34:06 +01:00
Sascha Willems
165b66a718
Reworked command line argument handling (#804)
* Reworked command line argument handling

Added a new class to handle these
2021-01-29 15:40:52 +01:00
Sascha Willems
ca17431794
Merge pull request #797 from caramelli/master
Fix long options for width and height
2021-01-28 19:39:49 +01:00
jeromenxp
1b22456d07 Change scope of validationExt and validationLayerName variables
Pointer to a variable declared into a block statement is stored and used outside of the block by vkCreateInstance. This can lead to segmentation fault.
Move the declaration of validationExt/validationLayerName outside of the block to fix the crash.
2021-01-18 17:41:41 +01:00
Witold Baryluk
be24a9c583
Add VK_PHYSICAL_DEVICE_TYPE_CPU to string 2021-01-07 19:54:33 +00:00