Commit graph

24 commits

Author SHA1 Message Date
scottchou007
bd7fd79bb8
Fix potential resource dependency problem. (#1079) 2025-01-24 09:15:26 +01: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
a546f466c1 Code cleanup 2024-01-21 12:52:14 +01:00
Sascha Willems
24591c6570 Code cleanup 2024-01-16 19:32:34 +01:00
Sascha Willems
d82ebc8f32 Heavily reworked this sample
Code cleanup, code restructuring, simplified and lots of new code comments
2024-01-12 12:45:14 +01:00
Sascha Willems
6893a04a43 Code cleanup, removed unnecessary VERTEX_BUFFER_BIND_ID 2024-01-08 20:26:41 +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
485bc7550a Code cleanup
Fixed compiler warnings
2023-12-24 15:58:23 +01:00
Sascha Willems
ed4c4684c5 Code cleanup. fixes warnings 2023-12-22 14:30:18 +01:00
Sascha Willems
72e8083b7c Removed unnecessary component swizzle assignments
Fixes #160
2022-12-31 12:31:27 +01:00
Stephen Saunders
f103389d03 Align UBO sizes between code and shaders for computeraytracing, ssao, & texturearray examples 2022-08-08 13:46:30 -04:00
Stephen Saunders
10fb7f99bb MoltenVK-specific config for computeraytracing and specializationconstants examples 2022-08-05 14:54:25 -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
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
Sascha Willems
485f93441e
Merge pull request #862 from ShoufengYang/patch-2
Fixed the first frame render error.
2021-11-10 19:20:15 +01: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
ShoufengYang
f4197f93b4
Fixed the first frame render error.
The compute commands should be submit before the graphic command. If not, there is a logical error that cause the first frame render error.  Since the graphic rendering need to sample the compute shader 's output image.
2021-08-03 23:22:48 +08:00
Sascha Willems
a465bad5aa Cleaned up includes
Fixed typos
2020-08-09 13:16:35 +02:00
Sascha Willems
361535b29e Split texture class into header and implementation
Moved include to base class
2020-08-08 22:54:34 +02:00
Sascha Willems
3abe588157 Fixed typos 2020-08-08 13:59:58 +02: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
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
Sascha Willems
b2add91d2c Renamed compute shader ray tracing example 2019-05-11 12:41:46 +02:00