Commit graph

1764 commits

Author SHA1 Message Date
Sascha Willems
2d636eda2c Android asset loading 2020-04-19 16:43:25 +02:00
Sascha Willems
4e610c56ce Also apply vertical flip option on aspect ratio change 2020-04-19 16:42:38 +02:00
Sascha Willems
a192a685b7 Update tinyglTF 2020-04-19 16:42:14 +02:00
Sascha Willems
e0c15f62da Renamed mesh example to glTF scene 2020-04-19 11:50:46 +02:00
Sascha Willems
3ae053d005 Code-Cleanup
Use flight helmet glTF 2.0 sample model
2020-04-19 10:59:16 +02:00
Sascha Willems
0ca5f41308 Added missing include 2020-04-19 10:11:50 +02:00
Sascha Willems
cbe751d26e Base class cleanup and restructuring 2020-04-19 10:05:47 +02:00
Sascha Willems
e9b9332d04 glTF model loading and rendering sample uses default frame submit function from base class 2020-04-19 09:18:48 +02:00
Sascha Willems
bb8d4c6df1 Add default frame submission function to base class 2020-04-19 09:17:53 +02:00
Sascha Willems
c5e8c178c2 Free glTF model resources in destructor 2020-04-13 18:58:02 +02:00
Sascha Willems
579c7d086f Calculate matrices from node-hierarchy and pass via push constant 2020-04-13 16:26:40 +02:00
Sascha Willems
6c43ab37ff Added property to flip y-axis to camera class 2020-04-13 16:04:59 +02:00
Sascha Willems
374ee215bb User camera class 2020-04-12 22:12:44 +02:00
Sascha Willems
2966d0ee5d Move drawing into dedicated VulkanglTF class
Comments, code-cleanup
2020-04-12 22:07:54 +02:00
Sascha Willems
9fa9a4b46b Move loading into dedicated VulkanglTF class 2020-04-12 21:59:26 +02:00
Sascha Willems
bb9374b2ec Split shader UBOs 2020-04-12 21:58:45 +02:00
Sascha Willems
9f7d13d5e0 Mesh loading and rendering now properly displaying glTF mesh
Added textures, modified structure to be more in line with glTF layout
Split matrices and material descriptor set
2020-04-12 21:24:33 +02:00
Sascha Willems
d50a5d0f40 Replace ASSIMP with glTF
Initial version of mesh loading and rendering example withouth ASSIMP (mainly due to Android build woes)
2020-04-12 18:37:25 +02:00
Sascha Willems
3763e001dc Apply vertex offset to indices
Fixes rendering for other models like sponza
Refs #677
2020-04-10 18:01:04 +02:00
Sascha Willems
05b2fbfb24 Mention the official Khronos Vulkan Samples repository 2020-04-02 20:40:49 +02:00
Sascha Willems
942c4e12ae Deprecation notice for VK_EXT_debug_report sample
Link to updated sample for VK_EXT_debug_utils in Khronos sample repo
2020-04-02 19:14:32 +02:00
Sascha Willems
78b25ebd71
Merge pull request #681 from krOoze/triangle_dependencies
Tweak Triangle subpass dependencies
2020-04-01 18:15:30 +02:00
Sascha Willems
90a39cc7a4 Merge branch 'master' of https://github.com/SaschaWillems/Vulkan 2020-03-31 08:21:57 +02:00
Sascha Willems
a8a3eb01ab Fix scope for VkPhysicalDeviceFeatures2
Fixes #678
2020-03-31 08:21:28 +02:00
Sascha Willems
e64395292a
Merge pull request #683 from swda289346/master
Fix double delete #682
2020-03-31 08:06:45 +02:00
Yunju Lee
7bd8b0753d Fixed #682 2020-03-15 11:04:13 -04:00
Petr Kraus
3e8c6e952f Tweak Triangle subpass dependencies 2020-03-05 21:20:48 +01:00
Petr Kraus
2a986b6a87 Fix some whitespace 2020-03-05 21:20:42 +01:00
Sascha Willems
67f1c2904c
Merge pull request #674 from SaschaWillems/compute_sync
Rework synchronization for compute particles sample
2020-02-22 15:43:32 +01:00
Sascha Willems
215b07bafa Rework synchronization for compute particles sample
Add proper cross-queue-barriers
Replace fence with semaphores
Fixes #649
Fixes #670
Fixes #406
2020-02-22 14:38:53 +01:00
Sascha Willems
9041ae3da7
Merge pull request #673 from SaschaWillems/compute_sync
Compute sync
2020-02-22 12:42:59 +01:00
Sascha Willems
780cfee8ab Get compute command buffer via device function 2020-02-22 12:32:17 +01:00
Sascha Willems
acdec3e127 Add proper queue family ownership transfer barriers between compute and graphics (for separate queue families)
Refs #544
2020-02-22 12:20:30 +01:00
Sascha Willems
fff003315b Added overload for passing command pool to cmd buffer create and flush 2020-02-22 11:35:07 +01:00
Sascha Willems
d1fbf8d00a
Skeletalanimation fix (#671)
* Fixed anc code cleanup for skeletal animation

Refs #669

* Fix android build
2020-02-20 14:25:29 +01:00
Sascha Willems
fcb0a2a46a Load UI overla font from asset path
Refs #627
2020-02-17 21:09:43 +01:00
Sascha Willems
662d2b3464 Centralize asset path handling
Refs #470
Refs #627
2020-02-17 21:09:27 +01:00
Sascha Willems
b3d333d1b8
Merge pull request #658 from hhsaez/hernan/fix-assets-paths
Fix asset path for some examples
2020-02-17 20:23:52 +01:00
Sascha Willems
b3749a90ad
Merge pull request #653 from httpdigest/master
Fix typos
2020-02-14 07:00:18 +01:00
Sascha Willems
c4ebdb9c75
Merge pull request #660 from weblucas/patch-1
Fix the cmake_minimum_required for the libktx
2020-02-14 06:57:36 +01:00
Sascha Willems
421baf2ccd
Merge pull request #661 from krOoze/patch-1
Fix README typo
2020-02-14 06:56:36 +01:00
Sascha Willems
e5eb726f59
Merge pull request #664 from gary-sweet/miplevel_clamp
Clamp miplevel size to avoid zero width or height
2020-02-13 18:43:28 +01:00
Sascha Willems
322705c649
Merge pull request #668 from kuhar/discard
Perform sampling before branching to discard to avoid undefined behavior
2020-02-13 18:40:09 +01:00
Jakub Kuderski
8982f8f2ec Perform sampling before branching to discard
This two fragment shaders that exhibit undefined behavior. In GLSL,
it is undefined to use implicit or explicit derivatives in
non-uniform control flow [1]. The SPIR-V produced by glslang contained
similar undefined behavior, which results in incorrect codegen
with the amdvlk's LLPC shader compiler, and produces visually
incorrect image.

This PR fixes this issue by hoisting the sampling so that it's
executed before discarding. It's a simple fix and may not be
the optimial way to resolve this issue.

[1]
https://www.khronos.org/registry/OpenGL/specs/gl/GLSLangSpec.4.60.pdf
p. 137.
2020-02-13 10:01:50 -05:00
Gary Sweet
bdc3b44e7d Clamp miplevel size to avoid zero width or height
I was seeing a zero height in certain circumstances
for textures in scenerendering.
2020-02-07 09:15:13 +00:00
Sascha Willems
3977935d94 Properly resize attachments and update descriptor sets
Refs #414
Refs #659
2020-02-05 20:49:18 +01:00
Sascha Willems
825227a067 Single submission 2020-02-05 19:48:49 +01:00
Sascha Willems
7ef09ae2a8 Use correct image layout for descriptor
Fixes validation
2020-02-05 19:15:37 +01:00
Petr Kraus
1dd3b5a509
Fix README typo 2020-02-05 14:59:14 +01:00
Lucas Teixeira
8dc9f8b173
Fix the cmake_minimum_required for the libktx
I believe that 3.8 was a mistake. I am running 3.5, but all other CmakeFiles have 2.8 as minimum.
2020-01-30 16:52:38 +01:00