Commit graph

2379 commits

Author SHA1 Message Date
Sascha Willems
2906df5308 Merge pull request #151 from pbantolas/fix-occlusionquery-copy
Adjust occlusionquery according to Vulkan spec.
2016-05-18 18:22:05 +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
Petros Bantolas
09a1e62a43 Make shadowmappingomni demo spec compliant.
It's illegal to use the same renderpass for rendering to a framebuffer
with different format (the offscreen one in this case). Added a
prepareOffscreenRenderpass function that creates a new renderpass with
the correct formats, and changed the vkCreateGraphicsPipelines and
vkCreateFramebuffer calls to use this one.
2016-05-17 15:52:33 +01:00
Petros Bantolas
0060ae151f Fix textoverlay demo to use correct allocation size.
textoverlay was previously using a custom allocationSize for the font
texture. Changed that to use vkGetImageMemoryRequirements.
2016-05-17 15:42:29 +01:00
Petros Bantolas
e27c97527b Conditional wireframe rendering based on device supported features 2016-05-16 12:26:11 +01:00
Petros Bantolas
a8fd4dbc79 Adjust occlusionquery according to Vulkan spec.
This moves vkCmdCopyQueryPoolResults outside of the Renderpass, as it
should be according to the Vulkan spec. This understanably has looks
wrong on the first frame, but by doing this you avoid having to use two
renderpasses to get the occlusion result.
2016-05-16 11:19:02 +01:00
saschawillems
52f6f3228d Initializer for event create info 2016-05-16 09:23:49 +02:00
saschawillems
1b335ad2c8 Added wrapper for frame preparation and submission, including semaphore selection and text overlay 2016-05-15 20:11:28 +02:00
saschawillems
5266c25c33 Added text overlay to the example base (by default off) 2016-05-15 18:31:31 +02:00
saschawillems
99b9ff220d Text overlay class 2016-05-15 16:14:32 +02:00
saschawillems
4198e2e64f Updates screenshots 2016-05-15 15:32:04 +02:00
saschawillems
5f80f49153 Renamed text overlay class to avoid collision with base class 2016-05-15 13:33:57 +02:00
saschawillems
33915ac557 Added text overlay class to base folder 2016-05-15 13:24:48 +02:00
saschawillems
b34de6be7f Copy base shaders for Android builds 2016-05-15 13:22:37 +02:00
saschawillems
4aaf45d06b New Android NDK treats linker warnings as errors and fails on all projects using ASSIMP. Set LOCAL_DISABLE_FATAL_LINKER_WARNINGS to disable this behaviour. 2016-05-15 12:13:38 +02:00
saschawillems
1bbd4cada7 Android material cap toggle, use vulkan result check macro 2016-05-15 11:20:44 +02:00
saschawillems
44e26648e5 Wireframe toggle 2016-05-15 11:13:57 +02:00
saschawillems
de0c29b586 Pass Android gamepad key press to virtual key function of example 2016-05-15 11:13:14 +02:00
saschawillems
b1a07ddff8 Put compute and render in one command buffer, narrowed scope of memory barriers 2016-05-15 09:14:10 +02:00
saschawillems
3ae4f26901 Updated compute shader particle system with point sprites and gradient coloring 2016-05-14 23:09:17 +02:00
saschawillems
72af27a49a Use vulkan result check macro 2016-05-14 21:40:58 +02:00
saschawillems
fb053a5011 Added gl_PerVertex outputs 2016-05-14 21:23:09 +02:00
saschawillems
7087d7d14e Skinned mesh stuff moved to class, added resources 2016-05-14 21:19:52 +02:00
saschawillems
26b02736d5 Updated sekeletal animation example 2016-05-14 20:03:29 +02:00
saschawillems
bbce1bd743 Use vulkan result check macro 2016-05-14 19:27:23 +02:00
saschawillems
2a05de5882 Use temporary command buffers for submitting image layout transitions 2016-05-14 19:19:12 +02:00
saschawillems
d7ea2c2ef8 Use additional semaphore to synchronize between offscreen rendering and offscreen target usage in final render pass (Refs #70), set attachment flags to zero (Validation warning) 2016-05-14 19:12:10 +02:00
saschawillems
7203b0cebd Binary shader memory deallocation, new and free instead of malloc (Fixes #118) 2016-05-14 17:11:39 +02:00
saschawillems
69e85e155d Updated screen shot for texture example 2016-05-14 16:20:25 +02:00
saschawillems
cb96eaf6bd Updated texture example using different texture and lighting (diffuse + specular) 2016-05-14 15:54:20 +02:00
saschawillems
a72df2bec9 Initial layout barrier was not submitted 2016-05-14 15:49:01 +02:00
saschawillems
779739fa45 Replaced some textures 2016-05-14 15:35:29 +02:00
saschawillems
45fe43c0c8 Use buffers as copy sources for texutre loading functions (Fixes #140) 2016-05-14 13:50:44 +02:00
saschawillems
ab54c8d49d Use vulkan result check macro 2016-05-14 13:50:10 +02:00
saschawillems
47a6dee065 Use a single buffer to image copy for the cube map (Refs #140) 2016-05-14 12:22:07 +02:00
saschawillems
d3e1718f28 Copy array texture layers from host visible buffer instead of linear image (Refs #140), only use one copy if all array layer dimensions are equal 2016-05-14 12:19:18 +02:00
saschawillems
c7a0d67448 Copy cube map texture faces from host visible buffer instead of linear image (Refs #140) 2016-05-14 11:46:56 +02:00
saschawillems
ebff829030 Removed note about API versions 2016-05-11 20:44:43 +02:00
saschawillems
4a124d75a3 Triangle example code cleanup, use VK_CHECK_RESULT macro instead of asserts, added more comments 2016-05-11 20:39:22 +02:00
saschawillems
a9f280016f Overload for getMemoryType (return type index) 2016-05-11 20:19:01 +02:00
Sascha Willems
59fbf41e31 Merge pull request #147 from TheBB/multisampling-voyager-ext
Fix asset filename in multisampling
2016-05-10 20:51:47 +02:00
Eivind Fonn
d4cded472e multisampling: fix asset path 2016-05-10 20:40:54 +02:00
saschawillems
9fef8fa042 Use result check macro instead of function 2016-05-08 11:40:25 +02:00
saschawillems
ea084fccc3 Staging, optimizations and code cleanup for mesh loading example 2016-05-08 11:30:04 +02:00
saschawillems
035a5ab560 Macro for checking and displaying Vulkan results 2016-05-08 11:18:39 +02:00
saschawillems
63900a9e06 Added text overlay example to readme 2016-05-07 16:29:56 +02:00
saschawillems
4bef4ca134 Added text overlay example to cmake and android build 2016-05-07 15:59:08 +02:00
saschawillems
8de82e8d0c Coordinates for unit cube text overlay display 2016-05-07 15:36:39 +02:00
baldurk
a1d8558b89 Add object naming and debug marker/regions to bloom sample 2016-05-07 14:08:40 +02:00
baldurk
d223dfa72b Check for VK_EXT_debug_marker being present and enable it if so 2016-05-07 14:06:47 +02:00