Commit graph

473 commits

Author SHA1 Message Date
Sascha Willems
f084d6093c Slightly reworked glTF samples
Parent matrices are now applied (where available)
Now more in line with the base code glTF loader
Refs #964
2022-08-06 10:16:54 +02:00
Sascha Willems
0f8a349f0c Get sampler index from UBO instead of passing from VS to FS
Fixes #826
2022-08-03 20:11:40 +02:00
Sascha Willems
79ec9b126b Added comment for required extensions 2022-08-02 10:19:49 +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
Sascha Willems
5c2aaaf693 Code cleanup
Fixes #962
2022-07-30 09:27:50 +02:00
Sascha Willems
05fa98f26b Change light pos 2022-07-30 09:16:36 +02:00
Sascha Willems
3066f15e18 Bugfix for graphics pipeline library sample 2022-07-30 09:14:11 +02:00
Sascha Willems
6dec0d7ce3
Merge pull request #959 from itoral/fix_depth_stencil_aspects
Fix various cases of image views with incorrect stencil aspect
2022-07-30 08:56:32 +02:00
Stephen Saunders
6ef16905ce Headless examples: update validation layer name & implement macOS VK_KHR_portability_subset / VK_KHR_portability_enumeration 2022-07-27 13:43:52 -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
46b2027dd1 Handle Vulkan / memory cleanup on shutdown for macOS benchmarking case 2022-07-20 12:00:14 -04:00
Stephen Saunders
d9d3e8c1fb ImGui example now shows Vulkan API and driver info, ImGui+TextOverlay+ConditionalRender+gltfSceneRendering examples now support macOS retina displays 2022-07-13 12:24:26 -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
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
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
Stephen Saunders
121612857c Fixes in examples: support swapchain image count change on resize, fix multiple validation layer errors on resize and quit, multiview now supports resize/fullscreen, computecloth deltaT now based on frame time, multisampling recreates attachments on resize, P key now pauses computeparticles, descriptorsets, and pushdescriptors 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
2810087752 Fix glTF build & settings issues for macOS, fix triangle example resizing, update macOS examples.h file
(cherry picked from commit 47061ff99446d8826ebe7fe187467ba638236a70)
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
2349738013 Changes to build on macOS and animate frames 2022-07-07 09:57:01 -04:00
Iago Toral Quiroga
6322010be2 Don't require D32S8 format for deferred shadows sample
The format is not mandatory by the spec and the sample doesn't
require stencil, so just choose a supported depth/stencil format
instead to allow this to run on more platforms.
2022-06-30 10:24:29 +02:00
Iago Toral Quiroga
9fef899e42 Fix various cases of image views with incorrect stencil aspect 2022-06-30 09:40:18 +02:00
Sascha Willems
e367464c3e Removed unused code 2022-06-16 19:24:17 +02:00
Sascha Willems
570ba6da47 Only apply stencil flag if selected format has a stencil part
Refs #947
2022-05-14 11:44:57 +02:00
Sascha Willems
8c376121c3 Pass depth range to depth map visualization shader
Fixes #895
2022-05-08 11:43:06 +02:00
Sascha Willems
8e98d10f74
Merge pull request #938 from Chris-F5/fix-deferred-typo
Fix typo in deferred.cpp
2022-05-08 09:36:34 +02:00
Sascha Willems
56b6978a6c Descriptor setup
Fixes #941
2022-05-08 09:30:15 +02:00
Sascha Willems
63c3e7eadd Added thread include 2022-04-22 08:05:28 +02:00
Sascha Willems
5bc82e9f02 Updated graphics pipeline library sample 2022-04-21 07:34:44 +02:00
Christopher Lang
26c8e2c520 Fix typo in deferred.cpp 2022-04-16 10:22:10 +01:00
Sascha Willems
4e6b4fe021 Renaming things 2022-04-04 10:22:54 +02:00
Sascha Willems
483671815f Reworked shader loading
Shader module creation is no longer necessary with graphics pipeline library
2022-04-04 09:58:46 +02:00
Sascha Willems
4e75890f84 Added vertex input and fragment output state
First working version
Still work-in-progress
2022-04-03 20:15:50 +02:00
Sascha Willems
a23742dba2 Started working on sample for VK_EXT_graphics_pipeline_library 2022-04-03 18:22:53 +02:00
Rajnesh Kanwal
b228c1adbf Don't set VK_IMAGE_ASPECT_STENCIL_BIT bit if format is depth only 2022-03-06 18:36:11 +00:00
Sascha Willems
821a0659a7
Merge pull request #924 from SaschaWillems/sample_vertexattributes
Add vertex attributes sample
2022-01-22 10:19:24 +01:00
Sascha Willems
704aeec6b0 Simplified glTF buffer code
Added Android build files
2022-01-22 10:03:39 +01:00
Sascha Willems
aad5a7dd81 Code cleanup 2022-01-21 21:07:16 +01:00
Sascha Willems
6b0bc52a1b Code cleanup and readme for vertex attributes sample 2022-01-21 13:35:06 +01:00
Sascha Willems
e34634c266 Corrected vertex attribute formats 2022-01-21 11:42:50 +01:00
Sascha Willems
0dc34c3375 Code restructuring 2022-01-21 09:59:30 +01:00
Sascha Willems
15124e8232 Code restructuring, cleanup and simplification 2022-01-21 08:17:07 +01:00
JJCUBER
e427c87664
Fixed typos in comments of triangle.cpp 2021-12-30 22:58:53 -05:00
Sascha Willems
5f1aac61ca Started working on sample showing comparing separate/interleaved vertex attributes 2021-12-26 18:42:03 +01:00
Longer Long
a78f139563
[Minor] Remove small duplication in triangle.cpp
Remove a line of duplication in `void preparePipelines()` of triangle.cpp.
2021-12-06 10:40:07 -05:00
Sascha Willems
313ac10de4 Removed unused texture 2021-12-04 10:10:38 +01:00
Sascha Willems
cd6882395d Added barrier between fragment shader write and read 2021-11-28 21:01:00 +01:00
Sascha Willems
fce1c93266 SSBOs are now device local
Heavily increases performance of this sample
Fixes #905
2021-11-28 11:16:35 +01:00