Commit Graph

49 Commits

Author SHA1 Message Date
Pawel Lapinski
4bf7361221 Small fixes and code refactoring for Tutorial07. 2018-02-22 14:11:20 +01:00
Pawel Lapinski
7b4dca8586 Fixed calculation of projection matrices (aligned with the Vulkan Cookbook). 2018-02-05 14:52:26 +01:00
Pawel Lapinski
9af5bc6d35 Changed line endings from Windows (\r\n) to Linux (\n) style. 2017-11-14 09:57:36 +01:00
Pawel Lapinski
340a7a664a Fixed small mistake in device selection loop. Added info about selected device name in Tutorial01. 2017-09-19 21:28:15 +02:00
codergirl42
0994ef6c5c Updated License Headers
Fixed control characters that caused misformatting in some text editors
2017-06-05 15:40:42 -07:00
codergirl42
561ac8c3c7 Updated License to Apache 2.0 2017-04-21 16:20:21 -07:00
TexKiller
eeb6f36ca6 Fix texture path on Tutorial07
Changing Data06 to Data07 in texture path.
2017-03-09 05:00:43 -03:00
Xinzhao@SWAT-06
35ff9cc8f0 Use the parameter of the image handle to allocate memory.
The original code will use Vulkan.Image.Handle to query the requirement of
the image to be allocated memory, which is unreasonable, since the handle
for the image has been given as the parameter "image" already. When reuse
this function to create other images, the program would crash in the
driver side for this reason.
2016-12-20 16:23:49 +08:00
s-ol
6439648691 fix window creation with XCB and XLIB 2016-11-06 11:52:23 +01:00
plapins
42eb048187 Fixed bug in Tutorial07 in wrong data size provided during copy operation. 2016-09-13 11:03:27 +02:00
plapins
d5a6671ec0 Added Linux version of compile_shaders.sh file. 2016-09-13 11:03:05 +02:00
plapins
47bb2a9177 Fixed initial layout (changed to undefined) during transitioning swapchain image after acquisition (both inside a pipeline barrier and render pass) in the rest of tutorials (04 to 07). 2016-08-19 10:57:38 +02:00
plapins
1d4a08db7e Fixed small mistake in a comment. 2016-08-19 10:51:29 +02:00
plapins
e5b9c166d2 Fixed initial layout (changed to undefined) during transitioning swapchain image after acquisition (both inside a pipeline barrier and render pass). 2016-08-19 10:51:11 +02:00
plapins
ac538d2f72 Renamed Vulkan library on Linux OS to libvulkan.so.1. 2016-07-27 11:23:27 +02:00
plapins
6891584245 Added handle's value clearing after framebuffer's destruction. 2016-07-27 11:23:26 +02:00
plapins
cdd862333c Updated README.md file (added link to fourth tutorial). 2016-07-16 00:21:08 +02:00
plapins
1570a40314 Refactored code in Tutorial 05 (changed order of operaions - moved rendering resources creation to the beginning). 2016-07-05 00:20:14 +02:00
plapins
05959fd7e5 Updated Tutorial 05 to incorporate changes implemented in a Tutorial 04. 2016-07-04 22:51:31 +02:00
plapins
bb53abad14 Replaced deprecated VK_API_VERSION definition with VK_MAKE_VERSION() macro. 2016-07-03 13:35:14 +02:00
plapins
83666e93b9 Modified Tutorial04: improved code maintenance (replaced static arrays with std::vectors); changed order of some operations (moved vertex buffer creation before rendering resources creation). 2016-07-02 22:45:16 +02:00
plapins
67b0dd27c9 Fixed code responsible for checking minimal required device parameters (limits). 2016-07-02 22:42:06 +02:00
plapins
638d77d51b Improved image memory barriers (used subpass dependencies in render pass). 2016-07-01 18:23:04 +02:00
plapins
8c6cc0ded3 Adjusted size of a quad in Tutorial07. 2016-06-24 10:00:16 +02:00
plapins
de3f1b1b99 Unified GLSL version across shaders in all tutorials. 2016-06-24 09:36:28 +02:00
plapins
c064ec5a4a Added tutorials "06 - Descriptor Sets" and "07 - Uniform Buffers". Added functions for projection matrices generation to Tools. Added function for loading images from files (with stb_image library). Updated README.md file with description of Tutorial06. 2016-06-22 23:23:22 +02:00
plapins
37d04f3be5 Fixed uninitialized variable problem in Tutorial05 and formatting (unnecessary spaces) in tutorials 04 and 05. 2016-06-20 16:26:40 +02:00
plapins
a4f78d3eed Modified rendering framework to support surface size of 0 width and 0 height (this can occur on Windows when window gets minimized). In such situation, swapchain is not created and rendering function is not called. Instead, rendering loop waits for 1/10 of a second. 2016-06-20 16:26:00 +02:00
plapins
55b350815e Added example usage to compile_shaders.bat file. 2016-06-16 10:53:43 +02:00
plapins
184b6c39ef Added simple batch file for converting GLSL shaders into SPIR-V assemblies using glslangValidator. 2016-06-16 10:36:40 +02:00
plapins
77c5c16467 Updated GLSL and SPIR-V shaders (added gl_PerVertex redeclaration to vertex shaders). 2016-06-16 10:35:43 +02:00
plapins
6bce4d9799 Fixed bug in buffer memory allocation code in tutorials 04 and 05. Modified ImageParameters structure (renamed "ImageView" member to "View", added "Sampler" member) and updated tutorial 03, 04 and 05. Fixed typos in comments. 2016-06-14 12:27:47 +02:00
plapins
2c06d5d63f Added code for tutorial 05 - Staging Resources 2016-06-06 14:08:17 +02:00
plapins
1ee571a0fb Fixed Tutorial04 definition in header file. 2016-06-06 11:13:30 +02:00
plapins
a996a583cf Fixed pWaitDstStageMask parameter of submit info structure in Tutorial03 and Tutorial04 (queue should wait before color attachment output stage not transfer dst stage). 2016-06-02 12:42:34 +02:00
plapins
24131e6a8e Added flush for modified (mapped) buffer's memory and removed unnecessary CommitMemoryChanges() function in Tutorial04. 2016-06-02 12:41:49 +02:00
plapins
49a1cac9d2 Fixed bug in Tutorial04 in which command buffer was submitted to queue but used framebuffer that was already destroyed. 2016-05-12 12:09:53 +02:00
plapins
68cbd74336 Refactored ListOfFunctions.inl file: divided functions into tutorials in which they are first used. 2016-05-01 22:11:40 +02:00
plapins
515dd00e87 Changed queue family indices to VK_QUEUE_FAMILY_IGNORED in image memory barriers when there is no transfer of ownership (src and dst families are identical). 2016-04-25 11:21:51 +02:00
plapins
ffca3688bc Modified Tutorial04: introduced recommended drawing approach with arbitrary number of [command buffer, semaphore, fence] resources and command buffer recorded each frame; removed creation of a custom image and a copy operation (from custom image to swapchain); framebuffer is now created only during command buffer recording; added dynamic viewport and scissors test states. 2016-04-22 23:23:51 +02:00
plapins
e9929a92a7 Updated Tutorial03 to incorporate changes introduted in VulkanCommon class (added semaphores, removed image view creation for each swapchain image). 2016-04-22 23:16:01 +02:00
plapins
ff48362533 VulkanCommon: removed semaphore creation, added image views for swapchain images, removed transfer_dst usage from swapchain images. 2016-04-22 23:13:01 +02:00
plapins
52cf26fdf6 Added copy operation of DataXX folders from TutorialXX to build folder. 2016-04-13 15:21:52 +02:00
plapins
95675bd125 Renamed "Tutorial" namespace to "ApiWithoutSecrets". Added ApiWithoutSecrets namescape to all files. Placed function pointers in an ApiWithoutSecrets namespace to fix errors on Linux. 2016-04-13 09:27:27 +02:00
plapins
d34da4e8e0 Changed all printf() functions to std::cout. Added information about available swap chain image usages. Cleaned included header files. 2016-04-13 08:59:52 +02:00
Eric Engestrom
27851ad5df Fix spelling mistakes 2016-04-08 00:39:40 +01:00
plapins
f6b78a7154 Fixed indentation and unnecessary whitespaces in Tutorial01.cpp and Tutorial04.cpp. 2016-04-07 08:35:47 +02:00
plapins
506089c206 Changed number of queue create infos provided during device creation from one to the actual number of elements in a vector (as found by fatto). 2016-04-01 20:54:14 +02:00
plapins
766e3f76d6 Added license.txt file.
Added Project folder with source code examples Part 1, Part 2, Part 3 and Part 4.
2016-03-14 20:21:47 +01:00