Commit graph

102 commits

Author SHA1 Message Date
saschawillems
17e3313b53 Move Vulkan initialization out of example constructor to allow overriding initialization functins (e.g. instance creation) 2016-12-13 19:59:15 +01:00
Cort
d5b03d26a5 Fixed assorted typos in comments and function names 2016-11-28 23:33:50 -08:00
saschawillems
9462a24421 platform agnostic argument handling 2016-11-10 22:56:15 +01:00
saschawillems
db66e81721 platform agnostic argument handling 2016-11-10 22:31:06 +01:00
Shi Yan
9b5127f894 add direct to display wsi swapchain option
direct to display swapchain needs to be enabled at compile time with option -DUSE_D2D_WSI=ON

currently tested under linux
2016-11-04 14:04:34 -07:00
saschawillems
422ac626e5 Updated window resize handling on (Fixes #171) 2016-10-16 17:39:30 +02:00
saschawillems
5862dc0479 Swapchain (and surface) cleanup on APP_CMD_TERM_WINDOW (Android) 2016-08-31 20:41:32 +02:00
saschawillems
b7ca1aad5d Use debug marker flag from vulkanDevice class, fixed fps display (sync with actual frame time) 2016-08-30 21:53:15 +02:00
saschawillems
85552a90df Merge branch 'master' into renderpasstransitions 2016-08-11 20:00:34 +02:00
saschawillems
26fa796517 Changed queue submission pipeline wait stages to color_attachment 2016-08-11 19:29:40 +02:00
saschawillems
bc8cae9db7 Fold attachment layout transitions into subpass (Refs #155) 2016-08-10 20:39:01 +02:00
saschawillems
ed71ae00c3 Windows keycodes, moved gamepad keycodes (Android) to keycodes header 2016-08-04 21:18:48 +02:00
Sascha Willems
3eeea85e20 Linux keys 2016-08-04 20:58:02 +02:00
Sascha Willems
f8cd3ee452 Movement keys for (first person) camera on Linux (Refs #56, Refs #181, Refs #186) 2016-08-03 21:44:04 +02:00
Sascha Willems
bc4e97cd0c Fixed Linux event loop and added first person camera view 2016-08-03 20:44:31 +02:00
saschawillems
381f568b07 Replaced some C casts with C++ style casts 2016-08-02 20:41:16 +02:00
saschawillems
ba8ff21d36 Fixed windows message loop, reduce number of view updates 2016-07-31 12:41:50 +02:00
saschawillems
4ed547a916 Change window positioning and sizing for Windows (Fixes #212) 2016-07-28 23:07:04 +02:00
saschawillems
706b9497ce No fps display in window title if text overlay is enabled 2016-07-24 21:18:25 +02:00
saschawillems
9a057f4146 Replaced example base memory type index function with function from VulkanDevice 2016-07-23 20:42:03 +02:00
saschawillems
1f8a58b6b3 Textoverlay now uses VulkanDevice, refactoring, documentation 2016-07-23 18:16:53 +02:00
saschawillems
2889bea4e9 TextureLoader now uses VulkanDevice, refactoring, default parameters, documentation 2016-07-23 12:26:49 +02:00
saschawillems
6a9bd4fc55 Validation error bits 2016-07-22 23:32:43 +02:00
saschawillems
919a510549 VulkanDevice class, setup debugging before creating the logical device 2016-07-22 22:24:27 +02:00
saschawillems
2e6e9d5eb2 VulkanDevice refactoring 2016-07-22 20:47:23 +02:00
Sascha Willems
eedf4d4188 Added more comments to the swapchain, some renaming for clarification 2016-07-20 16:45:09 +02:00
saschawillems
4a281dd88d Android gamepad Start button toggles example pause state 2016-07-18 21:33:59 +02:00
saschawillems
8d7450dbf6 MeshLoader now uses VulkanDevice for creating buffers 2016-07-16 19:14:11 +02:00
saschawillems
3c944c2bd9 Added Vulkan device class that encapsulates access to the physical and logical device and includes common functions 2016-07-16 17:36:35 +02:00
saschawillems
14f82969be Added mesh create info structure for passing info on scaling and centering upon mesh creation 2016-07-03 21:09:20 +02:00
saschawillems
aa1fb5eb95 Callback for enabling device features as optional constructor argument (Refs #165) 2016-06-27 22:28:21 +02:00
saschawillems
0616eeff4e Revert fixed tessellation device features in base class 2016-06-26 11:03:05 +02:00
saschawillems
8ff0ad57ba No longer enable validation layers at device level, deprecated since SDK 1.0.17.0 (refs #189) 2016-06-25 19:52:50 +02:00
saschawillems
8f76a24e53 Build command buffers for pre and post present barriers only once (instead of every frame) 2016-06-21 23:07:16 +02:00
saschawillems
d944af8604 Transform swap chain image from undefined instead of present (fixes #156) 2016-06-21 22:23:14 +02:00
saschawillems
2e101fdd1e First person gamepad camera for Android (move with LT, look around with RT) 2016-06-20 22:08:50 +02:00
saschawillems
2425797ca7 Force V-Sync via command line (windows) 2016-06-12 17:20:42 +02:00
saschawillems
73e18a4c05 Added basic camera class with firs-person view (wip!) 2016-06-11 15:54:16 +02:00
saschawillems
a8d3e74734 Updated debug callback, added more message prefixes and some comments (also fixes 2016-06-08 22:41:29 +02:00
saschawillems
3a1d443e52 Wait for device to become idle after exiting render loop 2016-06-02 20:56:13 +02:00
saschawillems
50a806130e Added debug marker region to text overlay command buffer 2016-05-28 12:35:20 +02:00
saschawillems
ae8f38d099 Use Vulkan result check macro, code cleanup, removed some warnings 2016-05-22 20:27:06 +02:00
saschawillems
dcca2db9df Partial merge branch 'add-debug-marker-use' of https://github.com/baldurk/Vulkan into baldurk-add-debug-marker-use (Refs #146) 2016-05-22 12:44:29 +02:00
saschawillems
3f06ef81fb Fixed Android gamepad dead zone check (avoids constant view updateds) 2016-05-21 15:20:07 +02:00
saschawillems
66f006b783 Mesh loader now does staging to device local memory by default (Refs #84) 2016-05-20 23:15:31 +02:00
saschawillems
d365b7ccd5 Overload for creating buffers with descriptor sets and passing memory type properties, use Vulkan result check macro 2016-05-20 21:19:43 +02:00
saschawillems
96df99f1f2 Fixing Android build error and warnings 2016-05-20 20:21:06 +02:00
saschawillems
f78bd0dcd4 Win32: PostQuitMessage instead of exit on VK_ESCAPE 2016-05-19 20:25:09 +02:00
saschawillems
05b920cf01 Callback for adding custom text to text overlay 2016-05-18 19:33:15 +02:00
saschawillems
19e108165c Reset wait stage masks for submit info after submitting text overlay, disable depth writes and reads , optimize load and store ops for attachments 2016-05-17 23:26:08 +02:00