SRSaunders
bdfd4709ff
macOS/iOS fixes plus other generic fixes for clang and validation warnings ( #1117 )
...
* Fix clang Objective-C++ flags for macOS command line builds
* Fix getAssetPath() and getShaderBasePath() for macOS command line builds
* Protect debugUtilsMessageCallback() from failing when pMessageIdName is NULL
* Fix a few clang function override and mismatched type warnings
* Fix validation layer warnings on exit for computeraytracing example
* Fix regression in text visibility toggle for textOverlay example
* Support VK_USE_PLATFORM_METAL_EXT vs. deprecated VK_USE_PLATFORM_MACOS_MVK / DVK_USE_PLATFORM_IOS_MVK
* Check dynamic state features before enabling capabilities in dynamicstate example
* Fix vkCmdDraw() vertexCount argument (PARTICLE_COUNT) in particlesystem example
* Update examples list and restore benchmarking script (to top level)
* Fix validation warning in descriptorindexing example
* Fix device max recursion depth validation warnings in ray tracing examples
* Fix OpenMP build settings for texture3d example on all platforms
* Update and simplify build instructions for macOS
* Update CI script with correct library path for libomp on macOS x86_64
* Update CI scipt to install libomp prior to macOS builds
* Trying one more time to get the CI script working for macOS libomp
* Fix vertexCount argument using calculated size in particlesystem example
* Fix combined image descriptor offset calculation in descriptorbuffer example
* macOS: Support non-system level Vulkan SDK installs, with fallback to MoltenVK library
2024-05-04 13:53:08 +02:00
Sascha Willems
4a0c8b8f23
Code cleanup, better naming, moved comments to header
2024-05-02 20:17:00 +02:00
Sascha Willems
52779a1bd1
Base class code cleanup
2024-03-20 07:49:06 +01:00
Sascha Willems
a9ae9eafaa
Code cleanup
2024-03-19 21:51:27 +01:00
takayhan-AMD
720afde027
Allow setting benchmarking warmup time to 0 seconds to skip warmup phase ( #1112 )
...
Sometimes it's desired to render exactly N (--c N) frames.
2024-03-19 21:28:19 +01:00
Bradley Austin Davis
e37a333b0d
Use debug utils during instance creation ( #1098 )
...
* Use debug utils during instance creation
* fixup! Use debug utils during instance creation
2024-01-21 14:07:35 +01:00
Sascha Willems
d26aed277c
Removed viewChanged callback
...
Preparation for reworking sync, such a callback would make it hard to find a proper sync point
2024-01-20 14:27:31 +01:00
Sascha Willems
c23027d687
Minor code cleanup
2024-01-01 16:41:38 +01:00
Sascha Willems
9b52fb76d8
Use references in for loops
2023-12-30 13:30:16 +01:00
Sascha Willems
d0211d1f14
Replaced per-sample validation define with global define in base class
...
Toggling validation via command line arguments is the preferred way anyway
Define was also added as a CMake option
2023-12-30 13:15:37 +01:00
Sascha Willems
2bd998556f
Slightly reformat validation messages and add color codes (windows only)
2023-11-01 11:38:28 +01:00
Mike Gorchak
8458f21123
Add basic QNX support.
2023-09-01 11:12:08 -04:00
Gadgeteer
2d2746c01d
Remove xcode/examples.h
2023-07-19 16:19:15 +01:00
Gadgeteer
af6869a0d3
Correct path for assets
2023-07-16 18:14:36 +01:00
Sascha Willems
df55238b11
Fix typo
...
Fixes #1052
2023-07-16 13:44:46 +02:00
Gadgeteer
b1d2777ad0
First Version of MacOS test
2023-07-15 10:44:22 +01:00
Yuan Tian
b82c3c83c6
Fix an error in benchmark mode using wayland
2023-06-13 14:53:31 +08:00
Sascha Willems
a124271b7e
Changed shader path lookup
2023-05-10 20:34:09 +02:00
Sascha Willems
ed8be7e92d
Replaced debug marker with debug utils in framework
2023-05-09 20:04:34 +02:00
Sascha Willems
3c9aca3fcb
Add stencil format require toggle
...
Fixes #1031
2023-05-09 18:03:51 +02:00
Sascha Willems
cca1c865d9
Added keyboard input handling
...
Windows only
2023-02-25 09:37:08 +01:00
Sascha Willems
288503390d
Clean up debug setup
2023-01-22 10:07:29 +01:00
Per Mathisen
580008ee5a
Fix for base subpass depedencies had uninitialized dependency flags.
...
This consistently crashed all the examples on my linux laptop with
Intel GPU in it.
Ref #665
2023-01-05 13:28:40 +01:00
Sascha Willems
9b624451cb
Fix base subpass depedencies
...
Fixes #665
2023-01-01 09:14:25 +01:00
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