Commit graph

19 commits

Author SHA1 Message Date
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
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
afde90dcfd Code cleanup 2024-01-21 13:19:40 +01:00
Sascha Willems
24591c6570 Code cleanup 2024-01-16 19:32:34 +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
5d56d40cdf Code cleanup
Additional/better commnets
2023-12-29 19:00:35 +01:00
Sascha Willems
ac957ef8af Code cleanup
Fixed remaining warnings (MSVC VS2022)
2023-12-27 19:58:33 +01:00
Stephen Saunders
b60f404b0e Fix cube count & indices logic error in descriptorindexing example 2022-08-08 02:15:03 -04:00
Stephen Saunders
ef02a20d5d MoltenVK-specific fixes for descriptorindexing and oit examples 2022-08-05 00:27:58 -04:00
Stephen Saunders
279c95422d Implement viewChanged() in multiple examples for proper window resize handling, fix triangle example resizing on macOS 2022-07-07 09:57:01 -04: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
Sascha Willems
a86bdc2c44 Finished descriptor indexing example 2021-01-28 22:04:25 +01:00
diharaw
78940988b9 Replace core VkDescriptorSetVariableDescriptorCountAllocateInfo structure with EXT version. 2020-12-16 10:51:27 +00:00
diharaw
4a11ae0c5a Added descriptorindexing sample to CMake.
Fixed variable descriptor size validation error.
2020-12-16 10:40:23 +00: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
122288fe25 Split buffer class into header and implementation
Moved include to base class
2020-08-08 22:18:35 +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
10a908d20f Started work on descriptor indexing example
Refs #583
2019-06-10 13:07:48 +02:00