Commit graph

1713 commits

Author SHA1 Message Date
Lionel Landwerlin
9db191f9a9 Make FPS counter more accurate
While trying to figure a discrepancy between the FPS counter from the
overlay we've introduced in Mesa [1] and the counter in the Vulkan
demos, I figured the demos are not accounting for part of the
rendering loop but rather just the amount of time spent rendering.

This changes accounts for the total amount of time between 2 frames. I
don't think any difference is visible until you reach high frame rates
of 100s or so.

[1]: https://gitlab.freedesktop.org/mesa/mesa/merge_requests/303
2019-02-23 20:51:38 +00:00
Sascha Willems
cf83c1b499 Nicer font for ImGui overlay 2019-02-20 20:57:38 +01:00
Sascha Willems
eec6444e3d Rebuild shaders with recent glslang compiler
Refs #544
2019-02-20 20:52:12 +01:00
Sascha Willems
047f9faeec Fixed image usage (validation), code cleanup
Moved model to asset pack
2019-02-20 20:03:12 +01:00
Sascha Willems
92b724e000 Merge branch 'master' of github.com:SaschaWillems/Vulkan 2019-02-20 19:56:54 +01:00
Sascha Willems
6e14084bdd Only set stencil aspect on image view if depth format has stencil component
Fixes #529
2019-02-20 19:56:42 +01:00
Sascha Willems
c02add8e55
Merge pull request #542 from prideout/master
Fix Android build error.
2019-02-10 09:03:09 +01:00
Philip Rideout
c00ede2978 Fix Android build error.
The latest version of Android Studio fails with:

    Could not find com.android.tools.build:aapt2

To use AAPT2, we must now have a dependency on the `google()` repo
in both places in the root build.gradle file, as per:

    https://developer.android.com/studio/releases/#aapt2_gmaven
2019-02-04 10:55:59 -08:00
Sascha Willems
49ee3469b6 Merge branch 'master' of github.com:SaschaWillems/Vulkan 2019-01-31 20:10:04 +01:00
Sascha Willems
fbbfe62ff4 Updated shadow mapping SPIR-V shaders 2019-01-31 20:09:48 +01:00
Sascha Willems
3eec106b47
Merge pull request #539 from Lunarsong/patch-2
Removed redundant division by w
2019-01-31 20:07:23 +01:00
Sascha Willems
d6d1d087fd
Merge pull request #540 from Lunarsong/patch-4
Removed redundant division by w
2019-01-31 20:07:09 +01:00
Shanee
a301ed7c5b
Removed redundant division by w 2019-01-29 23:28:12 -08:00
Shanee
715f3fd9b2
Removed redundant division by w 2019-01-29 23:25:02 -08:00
Sascha Willems
e34f9c110b
Merge pull request #537 from axilesoft/patch-1
fix: member not set because parameter same to member name
2019-01-25 12:30:49 +01:00
Indie C++/DX developer
e3fb4f27e2
fix: parameter same to member name 2019-01-21 00:05:51 +08:00
Sascha Willems
dbe3f01283 Fix for cmake C++11 definiton 2019-01-20 10:44:56 +01:00
Sascha Willems
7d5e022d54
Merge pull request #530 from soreau/master
wayland: Port to xdg-shell stable
2019-01-20 10:01:51 +01:00
Scott Moreau
203ea178d0 wayland: Port to xdg-shell stable
Wayland compositors and clients are expected to support the xdg-shell
stable protocol over the deprecated wl_shell protocol.
2019-01-16 01:33:34 -07:00
Sascha Willems
cd8b82b3fa
Merge pull request #533 from birsoyo/bugfix/multidraw-indirect-call
Pass the full count of the indirectCommands to vkCmdDrawIndexedIndirect
2019-01-12 19:15:55 +01:00
Orhun Birsoy
4a546d33c0 Pass the full count of the indirectCommands to vkCmdDrawIndexedIndirect
Items with zero instance count still need to be processed.
2018-12-27 13:11:07 -07:00
Sascha Willems
d782d4c15e Added multiview and inlineuniformblocks sample to android build 2018-12-08 18:50:25 +01:00
Sascha Willems
931c79d249 Code cleanup, free Vulkan resources 2018-12-01 22:31:51 +01:00
Sascha Willems
a5c03c7b66 Added per-frame static command buffer scenario 2018-12-01 21:52:27 +01:00
Sascha Willems
32bc5b3a75 Don't use base class semaphores, Code cleanup and reorder 2018-12-01 16:21:56 +01:00
saschawillems
c5e16e2ee1 Command buffer update strategy scenarios example (wip) 2018-11-27 21:24:33 +01:00
saschawillems
ef68d59a0b Updated tinyGLTF loader
Fixed warnings
Refs #521
2018-11-23 19:39:48 +01:00
Sascha Willems
9ceac8b20b
Merge pull request #520 from iostrowsINTEL/inline-uniform-blocks-fix
Fix maxInlineUniformBlockBindings value + comment
2018-11-22 20:35:18 +01:00
saschawillems
1f3cb12bd3 Removed GL_ARB_separate_shader_objects and GL_ARB_shading_language_420pack extensions from all shaders 2018-11-19 22:05:47 +01:00
Igor Ostrowski
4911aa7d18 Fix maxInlineUniformBlockBindings value + comment 2018-11-14 17:32:46 +01:00
saschawillems
c3e39e555a Use number of cubes for max. number of sets to allocate
Fixes #518
2018-11-10 20:40:33 +01:00
saschawillems
33870e46e3 Code cleanup
Fixes #462
2018-11-10 20:32:48 +01:00
saschawillems
e365faf2b6 Removed unused variables
Fixes #461
2018-11-10 20:13:25 +01:00
saschawillems
64252424a9 Use non-multiview renderpass for view display pipeline, proper final image layout (validation)
Fixes #514
2018-11-07 21:34:02 +01:00
saschawillems
2d7ec92923 Update camera perspective and aspect ratio on window resize
Fixes #510
2018-10-21 09:47:29 +02:00
saschawillems
f985322db9 Readme 2018-10-20 19:20:04 +02:00
Sascha Willems
80ec7a31f1
Merge pull request #495 from elect86/master
Added table of contents + Ports
2018-10-20 19:16:27 +02:00
saschawillems
648339bbe6 Removed gl_PerVertex overrides
Fixes #509
2018-10-20 18:00:32 +02:00
saschawillems
4af6419f43 Use texture class descriptor with proper image usage layout (fixes validation) 2018-10-20 12:14:11 +02:00
saschawillems
09c6e42468 Code cleanup, fixed validation error
Refs #277
2018-10-20 11:38:43 +02:00
saschawillems
69914d9033 Updated Vulkan headers to 1.1.88 2018-10-15 18:52:03 +02:00
Giuseppe Barbieri
08d8c6c42b
Update main.cpp 2018-10-14 21:00:07 +02:00
Giuseppe Barbieri
9efb5ff114
Update README.md 2018-10-14 21:00:00 +02:00
saschawillems
6e30114b1d Material randomization, added sample to readme 2018-10-07 11:44:47 +02:00
saschawillems
e36b0ae021 Enable additional required extensions 2018-10-07 11:26:30 +02:00
saschawillems
38cd7581b6 UI button for updating inline uniform blocks at runtime 2018-10-07 11:12:05 +02:00
saschawillems
367fce5b46 Reworked inline uniform block example 2018-10-07 10:27:28 +02:00
saschawillems
f1a7e66de1 Removed fragment shader from shadow map generation pipeline 2018-09-16 21:39:31 +02:00
saschawillems
bf67bd6061 Added conditional rendering sample to readme 2018-09-16 10:01:55 +02:00
saschawillems
dff35dd336 Started work on inline uniform block example (VK_EXT_inline_uniform_block) 2018-09-13 22:46:17 +02:00