Commit graph

265 commits

Author SHA1 Message Date
Sascha Willems
e52a9342f4 Add command line arguments to headless samples
Those samples can now toggle between glsl and hlsl shaders
Moved command line parster to a separate header
2022-12-31 09:45:01 +01:00
Sascha Willems
727d351b42 Added virtual function to enable extension based on extension list from physical device 2022-10-02 15:46:06 +02:00
Stephen Saunders
54d0b27e4a Fix ImGui overlay and add extension dependencies for dynamicrendering example 2022-08-01 19:05:37 -04:00
Stephen Saunders
62f6dcf767 Move macOS benchmarking to NSApp rendering loop, makes example windows visible vs. headless 2022-08-01 16:52:06 -04:00
Stephen Saunders
1b3fe76cdb Fix F1 on/off toggle for ImGui overlay (all platforms), clean up keycode handling (mostly macOS/iOS) 2022-08-01 16:11:57 -04:00
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
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
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
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
3e55366434 Added sample fro dynamic rendering using VK_KHR_dynamic_rendering 2021-11-06 19:45:22 +01: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
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
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
Nicolas Caramelli
9f00c24388 Fix long options for width and height 2021-01-07 17:05:42 +01:00
Nicolas Caramelli
c13a715ead
Add DirectFB WSI support (#761) 2020-09-13 10:12:33 +02:00
daemyung jang
ad6e36023f
Run on MacOS (#762)
* Run on MacOS

* Update BUILD.md
2020-09-11 20:19:28 +02:00
Sascha Willems
af49951afb Removed unused include 2020-08-29 10:43:01 +02:00
Sascha Willems
8374d6cd68 Code cleanup, changed message for missing enabled device extensions 2020-08-27 22:24:43 +02:00
Sascha Willems
de61539799 Store instance extensions, reworked support check 2020-08-27 19:56:02 +02:00
Jérôme Leclercq
3298455373
Output warning to stderr if an extension is not supported (#756) 2020-08-27 19:36:24 +02:00
Sascha Willems
d5be770f55 Merge branch 'master' of https://github.com/SaschaWillems/Vulkan 2020-08-24 20:04:53 +02:00
Sascha Willems
236a424955 Fixed full screen mode for resolutions different than current desktop size 2020-08-24 20:04:46 +02:00
datenwolf
fd202bfc76
xcb_connect always returns nonnull pointer, errors must be checked with xcb_connection_has_error (#720)
* xcb_connect always returns nonnull pointer, errors must be checked with xcb_connection_has_error: Fixed the error check to conform to XCB and assert nonnull pointer

* merged with newest master from upstream (tagged ktx)

Co-authored-by: Wolfgang Draxinger <code@datenwolf.net>
Co-authored-by: datenwolf <dw@kraeh.datenwolf.net>
2020-08-24 08:01:23 +02:00
Sascha Willems
d32663d569 Merged #729 2020-08-23 18:05:39 +02:00
Sascha Willems
9e22fe7b0d Add resized flag to base class 2020-08-16 10:22:45 +02:00
Sascha Willems
b0376aea5e Fixed some compiler warnings and obvious errors 2020-08-09 15:10:28 +02:00
Sascha Willems
e1ec3b6c78 Fixed typos 2020-08-08 13:25:58 +02:00
Sascha Willems
14536c6ec7 Removed unused Android code 2020-08-06 08:02:27 +02:00
Sascha Willems
29b5ba5abe
Merge pull request #704 from MattGuerrette/master
Update WM_CLASS property on Linux using xcb
2020-07-30 19:54:09 +02:00
Ben Clayton
301e8abf12 Add command flag for picking between shaders
The new `-s`, `--shaders` command line flag allows you to specify whether you want to load the glsl or hlsl shaders.
Defaults to glsl.

Issue: #723
2020-06-01 12:22:28 +01:00
Ben Clayton
ca884587a4 Move shaders into glsl and hlsl directories
Move `data/shaders` to `data/shaders/glsl`
Move `data/hlsl` to `data/shaders/hlsl`

Fix up shader paths in the cpp files to point to the new glsl location.

`data/shaders/hlsl/compile.py` still overwrites the glsl .spv files (for
now).

Issue: #723
2020-06-01 12:22:28 +01:00
Matt Guerrette
ddf70467d4 Update WM_CLASS property on Linux using xcb
This commit updates the WM_CLASS property to display a better
title than "Unknown" for each example in the dash and application menu.

Update WM_CLASS property on Linux using xcb

This commit updates the WM_CLASS property to display a better
title than "Unknown" for each example in the dash and application menu.
2020-04-30 11:29:50 -04:00
Sascha Willems
ab38f8b150 Code-Cleanup: All samples now use the camera class and it's matrices
Cleaned up base class
2020-04-22 20:58:24 +02:00
Sascha Willems
53846d8b1d Code cleanup 2020-04-20 22:13:51 +02:00
Sascha Willems
458c149c71 Code cleanup 2020-04-20 20:29:15 +02:00