Commit graph

724 commits

Author SHA1 Message Date
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
Sascha Willems
122793da95 Started working on sample for VK_EXT_host_image_copy
First working version
Work-in-progress
2024-06-20 16:50:43 +02:00
SRSaunders
202cfbb49e
Enable debugPrintf example on macOS using validation layer (#1124) 2024-05-25 11:57:44 +02:00
Sascha Willems
fb881ab76f Code cleanup, rename ui overlay property 2024-05-23 21:56:42 +02:00
takayhan-AMD
3d4446fa15
Apply a random seed when NOT in benchmark mode to have 100% deterministic runs in all samples (#1127)
* Apply a random seed when NOT in benchmark mode to have 100% deterministic runs

These samples lack the check for benchmark.active when applying a random seed, which is done for other samples.

* Update texture3d.cpp
2024-05-18 10:01:01 +02:00
Vovan675
478b6c39bf
Fix SSAO_NOISE_DIM for android (#1121)
Comment states that it should be "smaller", but its the opposite I think
2024-05-15 18:52:31 +02:00
takayhan-AMD
3a941167d1
Fix computeshader sample first frame being rendered with bogus UBOs (#1125)
After this change, the sample's render() method would first update its UBO and then start drawing stuff so as to have valid frame output from frame 0, similarly to other samples.
2024-05-15 18:32:32 +02:00
Sascha Willems
9756ad8c23 Post PR cleanup
Use rayTracingPipelineProperties from base class instead of expliclity querying it in the sample
2024-05-04 14:06:18 +02:00
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
2cb468dd84 Minor code cleanup 2024-05-01 18:29:52 +02:00
Sascha Willems
3d641ac5cd Use combined image descriptor size instead of (wrong) uniform descriptor sizes
Fixes #1091
Fixes #1118
2024-04-26 17:15:33 +02:00
Sascha Willems
035f299ed5 Skip fragment shader when discard is enabled
Fixes #1101
2024-04-14 09:43:16 +02:00
Danylo
90054f660f
Remove rayTracingPipeline requirement from rayquery (#1115)
rayquery test doesn't use ray tracing pipelines so it shouldn't
enable this feature.

See: https://github.com/SaschaWillems/Vulkan/issues/1004

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
2024-04-06 19:39:14 +02:00
Oni
2f8b5c92ad
Remove redefined variable in same scope (#1114) 2024-03-23 19:05:40 +01:00
Sascha Willems
52779a1bd1 Base class code cleanup 2024-03-20 07:49:06 +01:00
Sascha Willems
c6cd406c6f Remove compilier warnings 2024-03-19 22:07:26 +01:00
Sascha Willems
259222054e Enable UI overlay for additional ray tracing samples 2024-03-19 21:59:25 +01:00
Sascha Willems
a9ae9eafaa Code cleanup 2024-03-19 21:51:27 +01:00
Sascha Willems
5b792b056d Cleanup, fix comment typos 2024-03-19 21:17:36 +01:00
Sascha Willems
055d70dc30 Documentation 2024-03-16 10:34:29 +01:00
Sascha Willems
85018e6b09 Added sample for VK_KHR_ray_tracing_position_fetch 2024-03-16 10:29:44 +01:00
Sascha Willems
ba8fea35ac Adjust subpass barriers
Fixes sync val
2024-02-19 21:33:16 +01:00
Sascha Willems
eda68d2421 Adjust descriptor pool
Fixes #1105
2024-02-18 14:53:16 +01:00
Sascha Willems
12892a87c2 Use no. of model images for pool size 2024-02-12 10:23:56 +01:00
Sascha Willems
213bf850d5 Removed outdated todos 2024-01-21 13:58:37 +01:00
Sascha Willems
afde90dcfd Code cleanup 2024-01-21 13:19:40 +01:00
Sascha Willems
91ab6a517f Code cleanup 2024-01-21 13:15:56 +01:00
Sascha Willems
a546f466c1 Code cleanup 2024-01-21 12:52:14 +01:00
Sascha Willems
922dbd4827 Code cleanup 2024-01-21 11:09:15 +01:00
Sascha Willems
91b85e41cf Code cleanup, radial blur parameters can now be changed from the UI 2024-01-21 10:51:13 +01:00