Commit graph

753 commits

Author SHA1 Message Date
Sascha Willems
75bfd2dc47 Make validation script work with non-windows platforms
Fies #1215
2025-07-03 08:57:54 +02:00
Sascha Willems
d7903488eb Proper semaphore setup
For details see https://docs.vulkan.org/guide/latest/swapchain_semaphore_reuse.html
Fixes #1217
2025-06-25 21:22:08 +02:00
Sascha Willems
d92eee9b8b Cleanup 2025-06-17 08:10:57 +02:00
Sascha Willems
a36a35cb40 Added script to validate all samples
Validation messages are stored into a single file
2025-06-17 07:44:30 +02:00
Sascha Willems
d34494602c Sligthly rework validation layer logging to tet file 2025-06-16 22:34:21 +02:00
Sascha Willems
0686ff5dbc Fix typo 2025-06-10 07:44:14 +02:00
Sascha Willems
64ba099002 Make semaphores unique per swap chain image
Fixes #1210
2025-06-09 19:57:47 +02:00
Sascha Willems
422d54e387 Do not shadow loop variable
Fixes #1207
2025-06-06 08:48:41 +02:00
Harry Gunnarsson
372bcef740
Trivial fix for building example 'computecullandlod' for Android target.
The constexpr looks wrong in the ANDROID compile-time switch
2025-06-03 18:24:01 -04:00
Sascha Willems
829118736f Added slang shaders for additional compute samples 2025-05-19 19:51:43 +02:00
Sascha Willems
04ab171247 Add slang shaders for headless samples 2025-05-15 19:04:04 +02:00
Sascha Willems
153aa3b932 Add slang shader for shadow mapping and shadow mapping cascades sample 2025-04-28 21:03:37 +02:00
Sascha Willems
74be818cc6 Minor cleanup 2025-04-13 18:19:36 +02:00
Sascha Willems
b56067bd03 Enable drawIndirectFirstInstance feature
Code cleanup
Fixes #1198
2025-04-04 17:12:30 +02:00
SRSaunders
9a562a5426
Macos ios fixes (#1192)
* Configure MoltenVK to use a dedicated compute queue for compute[*] examples with sync barriers

* Modify descriptorindexing example for iOS and variable descriptor count limitations on MoltenVK

* Remove obsolete macOS #ifdefs no longer needed for modern MoltenVK versions

* Update iOS project to fix missing vkloader.c reference and revise example list

* Set required features and API version for VVL in debugprintf example

* Remove unnecessary Apple-specific code from descriptorindexing example

* Add Layer Settings capability to VulkanExampleBase::createInstance()

* Replace setenv() in examples with Layer Settings configuration for macOS/iOS

* Update comments in examples.h and fix missing initializer in computeraytracing example

* Update imgui overlay and example to support iOS Simulator

* Update more comments in examples.h and remove redundant initializers in deferred* examples

* Separate variable descriptor count declarations for apple and non-apple platforms

* Consolidate variable descriptor count declarations for apple vs. non-apple platforms

* Configure MoltenVK with a dedicated compute queue in VulkanExampleBase() and remove from samples
2025-03-29 16:21:37 +01:00
SRSaunders
d14be3b787
Fix a few compiler warnings and startup/validation issues at runtime (#1193)
* Add error recovery to trianglevulkan13 and fix missing "override" compiler warnings

* Look for vkGetPhysicalDeviceFormatProperties2KHR in hostimagecopy example

* Enable fragmentStoresAndAtomics feature to avoid VVL warning in subpasses example
2025-03-09 12:48:00 +01:00
Sascha Willems
02ed0eebb3 Add missing asset to host image copy sample
Minor code cleanup
2025-03-01 18:00:58 +01:00
Sascha Willems
42fc44114a
Android changes (#1194)
* Update to latest MacOS image

* Minor android cleanup

Removed no longer required std functionality
2025-02-28 18:02:15 +01:00
Sascha Willems
e4cf8a6116 Use only one intermediate image 2025-02-16 18:27:23 +01:00
Sascha Willems
1cd72f3d07 New dynamic rendering multi sampling example
Work-in-progress
2025-02-16 12:07:15 +01:00
Sascha Willems
a87dfde9cc Add support for loading compiled Slang shaders 2025-02-06 21:25:43 +01:00
Sascha Willems
6c7f72f0bd Code cleanup 2025-01-24 10:14:40 +01:00
SRSaunders
affe2609c5
computecloth: Optimize barriers and add compute queue double buffering (#1128)
* Optimize compute-to-compute barriers and adjust access masks for buffer queue transfers

* Add compute queue double buffering for in-parallel compute / graphics queue processing
2025-01-24 09:18:03 +01:00
scottchou007
bd7fd79bb8
Fix potential resource dependency problem. (#1079) 2025-01-24 09:15:26 +01:00
Sascha Willems
59b7217cbc Initialize cubes, clamp y instead of x for second cube
Fixes #1178
2025-01-17 19:03:08 +01:00
Sascha Willems
e9270580b8 Adjust samples to recent swap chain class changes 2024-12-19 21:40:42 +01:00
Sascha Willems
dcec337fa9 Swapchain code cleanup
Use references instead of pointers
2024-12-19 21:29:22 +01:00
Sascha Willems
fb895169ba Code cleanup 2024-11-23 16:01:23 +01:00
Sascha Willems
d184cf64c5 Use correct size for index data copy
Fixes #1167
2024-11-20 17:39:41 +01:00
Sascha Willems
fb6c95381e Minor code cleanup 2024-11-02 12:44:10 +01:00
Sascha Willems
29e939b1e4 Remove accidentally added files 2024-11-02 12:26:43 +01:00
Sascha Willems
d53f6f3622 Stage geometry nodes to device 2024-10-31 19:20:26 +01:00
Sascha Willems
5d89216db5 Fix descriptor leak on resize 2024-10-29 22:10:14 +01:00
Sascha Willems
514d3e5393 Minor code cleanup, check for device limits 2024-10-22 21:06:05 +02:00
Sascha Willems
93d4c1c1ca Minor code cleanup 2024-10-22 20:49:24 +02:00
Sascha Willems
ffe83aee08 Fix spelling. minor adjustments 2024-10-11 16:36:47 +02:00
Sascha Willems
a734964b21
Android build tool update (#1160)
* Update to latest Android build tools

ALooper_pollAll is deprecated

* Update to latest Android build tools

ALooper_pollAll is deprecated

* Update to latest Android build tools

Update manifests

* Update to latest Android build tools

ALooper_pollAll is deprecated

* Update build instructions for Android
2024-10-11 14:31:04 +02:00
Sascha Willems
128b096b6e Set firstInstance to zero
Fixes #1159
2024-10-10 17:26:25 +02:00
William Pearson
358babffd8
Android build fixes (#1156)
* Add gradle build scripts to more examples

* Fix building graphicspipelinelibrary example on android

* Fix tinygltf dependencies

hostimagecopy uses tinygltf but didn't depend on it, while meshshader doesn't use it.

* Load more Vulkan functions on Android

The sparse functions are used by texturesparseresidency, while the begin/end rendering functions are used by trianglevulkan13.
2024-10-08 20:30:35 +02:00
Sascha Willems
a2d5a1fd44 Simplify descriptor setup
Refs #1157
2024-10-06 15:17:11 +02:00
Sascha Willems
6b91f3c493 Cleanup and simplification
Only use one staging buffer for both vertices and indices
2024-10-03 11:46:38 +02:00
Sascha Willems
8e73bac88b Copyright 2024-09-15 14:58:08 +02:00
Sascha Willems
c7eed13c7c Code cleanup 2024-09-14 20:27:08 +02:00
Sascha Willems
a5ace0608b Added Vulkan 1.3 version of the basic triangle samples
Uses dynamic rendering and sync2 to simplify things
2024-09-14 16:59:51 +02:00
Sascha Willems
dc0f1c71cc Comment 2024-09-05 21:35:58 +02:00
Sascha Willems
8cb518ba54
Add new sample for timeline semaphores (#1145)
* Started work on a timeline semaphore sample

* Properly increas timeline semaphore value

* Added timeline semaphore sample to readm

* Code cleanup, comments

* Removed toto

* Added android build files for timeline semaphore sample
2024-07-21 09:31:42 +02:00
Sascha Willems
8b4ee59033
Add new sample for buffer device address (#1144)
* Started work on buffer device address sample

* Code cleanup

* Added BDA sample to readm

* Added android build files for BDA sample

* Replaces all uniform buffers with references
Comments and code cleanup
2024-07-03 22:04:57 +02:00
Sascha Willems
c598b1e7ab
Move entry point macros to separate header (#1120)
* Move entry point macros to separate header

* Minor code cleanup

* Updated macos CI
2024-07-03 21:28:20 +02:00
Sascha Willems
2e1abd1c54 Check for image feature support
Code cleanup
Comments
2024-06-21 11:28:22 +02:00
Sascha Willems
8317c16960 Added comments 2024-06-20 17:32:25 +02:00