Commit Graph

157 Commits

Author SHA1 Message Date
ladysadie 3e78cbe874
Add a code block for the GLFW window pointer. (#413)
Almost all of the code listed in this chapter uses a c++ code block. The
block for the 'GLFWWindow* window' was missing.
2025-09-21 19:11:09 +02:00
Daxturus 02e283d548
Remove invalid "warn" argument passed to tinyobj::loadObject(...) (#406)
* Update 28_model_loading.cpp

Removed "warn" argument passed to tinyobj::LoadObj(...).

* Update 29_mipmapping.cpp

Removed "warn" argument passed to tinyobj::LoadObj(...).

* Update 30_multisampling.cpp

Removed "warn" argument passed to tinyobj::LoadObj(...).

* Update 08_Loading_models.md

Removed "warn" argument passed to tinyobj::LoadObj(...) from e-book.

* Update 08_Charger_des_modèles.md

Removed "warn" argument passed to tinyobj::LoadObj(...).
2025-05-11 12:26:42 +02:00
qiyuewuyi2333 404a54800d
Fix: a miss language typo (#400) 2025-04-07 08:27:26 +02:00
Vincent Giraud f4122e5104
Replace mesa-vulkan-devel with mesa-vulkan-drivers in Fedora (#398) 2025-02-26 22:55:00 +01:00
Alexander Overvoorde 7d8dbddb49
Fix broken link (fixes #395) 2025-01-22 22:37:39 +01:00
triacontakai b42b308210
Fix Xxf68vm typo (#393) 2024-11-08 15:16:28 +07:00
Alexander Overvoorde 3bf8f964e0
Update Debian package name for validation layers 2024-06-30 19:16:38 +02:00
Zach Madsen efed1afa16
Remove an extra word (#385) 2024-06-30 19:03:35 +02:00
Anonymous Coward c54c38236c
Update 02_Development_environment.md (#383)
Arch Linux doesn't have separate `glfw-wayland` and `glfw-x11` packages now.
2024-06-30 19:03:00 +02:00
Jacob Anderson b2ea3a7337
Patch 1 (#380)
* fix casing of a create info struct field

* fix French too
2024-05-09 13:35:18 +02:00
Hyungki Kim fe5f29e23f
fix misleading description (#376) 2024-03-06 20:31:38 +01:00
Jing Luo f4a98c0c5a
Add license files and a license section in introduction (#372)
* 00_Introduction.md: add a license section

Add a "license" section to clarify the copyright status of the website/ebook.

* Add LICENSE.CC-BY-SA-40

* Add LICENSE.CC0
2024-01-04 20:08:39 +01:00
Ryan Linnit 2f3ac600c1
Use range-based loops in markdown (#365) 2023-11-14 19:22:52 +01:00
Hyungki Kim fe86b765dd
Update 01_Shader_modules.md (#360) 2023-10-16 20:25:58 +02:00
Chuigda WhiteGive 71b71e4841
replace "descriptor layout" with "descriptor set layout" (#358) 2023-09-25 21:31:00 +02:00
Hugo Locurcio 898f655f92
Use `VK_LOD_CLAMP_NONE` constant to set mipmap max LOD level in sampler (#354)
This allows for using different texture sizes without having to
know the mipmap count in advance.

All conformant Vulkan implementations should be able to handle this
constant, which is equal to `1000.0f`.
2023-08-09 21:35:09 +02:00
Chuigda WhiteGive 1dbd594b5c
Add another good Rust tutorial (#352)
* Add another good Rust tutorial

* Update 00_Introduction.md
2023-08-02 23:24:31 +02:00
Reese Gallagher bba1ee6e63
Update development environment tutorial for Linux to indicate possible libraries which may need to be installed (#353) 2023-08-02 23:22:31 +02:00
Jay Xu 681c588e3b
Fix multisampled color attachment sync (#349) (#350)
* Fix multisampled color attachment sync (#349)

* Update 10_Multisampling.md

fix typo
2023-07-24 20:43:47 +02:00
Gleb Ezhov e16c142424
Added missing dot (#348) 2023-07-16 19:13:16 +02:00
Petr Kraus dc02dccc62
Fix depth buffer reuse sync (#345) 2023-07-13 22:29:37 +02:00
Johnson Sun b60f145a93
Fix Vulkan SDK path on Windows (#338) 2023-05-16 20:23:23 +02:00
Lucas Merritt 6fa5edd222
Fix incorrect create image view error message (#334)
The function "createImageView" has a somewhat incorrect error message,
saying that it failed to create a texture image view. However, the
function is also used by more than simply the texture image view
creation process(e.g., the swapchain image view creation process, "createImageViews").
2023-05-09 21:39:12 +02:00
Marcin Serwin e064106c98
Change Makefile snippets to use tabs (#333)
Makefile requires usage of tabs for indentation, otherwise it throws `*** missing separator.  Stop.`
2023-05-04 21:37:34 +02:00
Gleb Ezhov a7de542550
Added missing "to" (#331) 2023-04-26 19:27:46 +02:00
Maíra Canal 1eb2223b15
A collection of minor fixes (#330)
* Apply coherent indentation all over the file

* Use static_cast to perform casting

* Add three dots to indicate that it isn't the top of the function
2023-04-24 21:16:12 +02:00
Light7734 b811ac1af9
fix: typoe in 11_compute_shader.md (#329) 2023-04-23 22:37:51 +02:00
Alexander Overvoorde 404879a3f1 Update remaining ebook links 2023-03-27 22:28:41 +02:00
Alexander Overvoorde bc93e0e647 Fix links to ebook files 2023-03-09 18:05:14 +01:00
Alexander Overvoorde 1db3e81e45 Fix broken link 2023-02-22 22:46:56 +01:00
jsanchez.net f4c63edb28 Typo (#324)
Until know  -> Until now
2023-02-16 00:33:33 +01:00
jsanchez.net be9327a658 Update 07_Depth_buffering.md (#322)
Next, update the VkRenderPassCreateInfo struct to refer to both attachments

should be

Next, update the VkSubpassDependency struct to refer to both attachments.


----------------

I checked the source code at the end of the article and indeed VkRenderPassCreateInfo should be VkSubpassDependency
2023-02-12 19:45:35 +01:00
Sascha Willems 2b5ef6d6f3 Add a new compute shader bonus chapter (#320)
* Started working on compute shader bonus chapter

* Continued work on compute shader bonus chapter

* Continued work on compute shader bonus chapter

* Added code for compute sample

work-in-progress

* Added code for compute sample

Per-frame ssbos
Compute shader is now integrated and updating particles
work-in-progress

* Added code for compute sample

Nicer visuals, circular initial particle positions
work-in-progress

* Added code for compute sample

work-in-progress

* Tutorial compute queue families, submission and synchronization chapter

* Added paragraphs on sync, submit and queue familes

Rewording some paragraphs

* Rewording

Added image for workgroup and invocations compute space

* Sample for work group and dispatch counts

* Note and spec reference on queue families

* Minor additions

* Sample code uses SSBO per frame

Code cleanup
Tutotorial changed

* Added image for SSBOs per-frame reads and writes

* Conclusion

* Added note on signaled fences

* Update 11_Compute_Shader.md

* Use persistent mapped buffers

* Added links to advanced topics (tutorials, samples)

* Fixed typo

* Add note for the storage image chapter

* Added note on how to handle uneven no. of invocations using gl_GlobalInvocationID

* Added compute fence resize to tutorial

Was already present in code

* Update en/11_Compute_Shader.md

Co-authored-by: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com>

* Update en/11_Compute_Shader.md

Co-authored-by: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com>

* Update en/11_Compute_Shader.md

Co-authored-by: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com>

* Update en/11_Compute_Shader.md

Co-authored-by: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com>

* Update en/11_Compute_Shader.md

Co-authored-by: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com>

* Update en/11_Compute_Shader.md

Co-authored-by: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com>

* Update en/11_Compute_Shader.md

Co-authored-by: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com>

* Update en/11_Compute_Shader.md

Co-authored-by: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com>

* Update en/11_Compute_Shader.md

Co-authored-by: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com>

* Update en/11_Compute_Shader.md

Co-authored-by: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com>

* Update en/11_Compute_Shader.md

Co-authored-by: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com>

* Update en/11_Compute_Shader.md

Co-authored-by: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com>

* Update en/11_Compute_Shader.md

Co-authored-by: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com>

* Name the actual compute related physical device limits

* Clarfiy how work group and invocation counts are specified

* Show how initial particle data is generated for the shader storage buffer s

* Restructure SSBO setup

* Indentation

* Minor touches

* fixed transposition

* Added note on std140 memory layout qualifier

---------

Co-authored-by: Marty Johnson <68354714+marty-johnson59@users.noreply.github.com>
Co-authored-by: Charles Giessen <46324611+charles-lunarg@users.noreply.github.com>
2023-02-06 18:01:22 +01:00
Alexander Overvoorde c2483ac168 Update references to primary branch and update a few other things 2023-01-30 21:27:57 +01:00
jsanchez.net 03c98a3e28 just added a missing word (#317) 2023-01-13 21:17:58 +01:00
Liv Gorence d555474ecf Fix typo. (#316) 2022-12-29 12:47:26 +01:00
Codotaku 35c2305cfd Missing semicolon (#314) 2022-12-12 21:02:56 +01:00
John Kim b1751a90aa Update 01_Descriptor_pool_and_sets.md (#312)
Fix small typo
2022-11-07 22:50:25 +01:00
Alexander Overvoorde 0fa8b5365e Update old code in text 2022-11-03 23:26:36 +01:00
Sascha Willems 4454f6d4c5 Persistent mapping for uniform buffers (#310)
* Updated UBO chapter and removed in-place map and unmap of the ubo

Replaced it with map-once aka "persistent mapping"

* Fixed index for uniform buffer selection

* Update code samples to persistent ubo mapping

* Resize vector for mapped uniform buffer pointers

* Use calculated buffer size for mapping

* Update code samples to persistent ubo mapping

* Spelling
2022-11-03 23:15:45 +01:00
Magali Lemes 6ebbe97bfb Change Fedora packages' names (#302)
On Fedora, the packages should be libXi-devel and libXxf86vm-devel,
instead of libXi and libXxf86vm. Otherwise, by following the tutorial,
we might get errors such as:

/usr/bin/ld: cannot find -lXxf86vm
collect2: error: ld returned 1 exit status
make: *** [Makefile:5: VulkanTest] Error 1
2022-08-15 21:04:09 +02:00
Alexander Overvoorde bf473b0e94 Merge branch 'RuiwenTang-dev' 2022-08-07 16:10:04 +02:00
Alexander Overvoorde 31f5fc8fa1 Move explanation to FAQ page and reword 2022-08-07 16:09:42 +02:00
sorvon 58d8a6de3a Update 07_Depth_buffering.md (#297)
Fix the recreateSwapChain() function to match the code, which may cause the "Validation Error" if you resize and close window.
2022-08-07 15:36:48 +02:00
Jason2013 b81d3b0f5b Fix missing '{' (#299) 2022-08-05 12:39:18 +02:00
RuiwenTang 57178e1832 Append new section in Instance create chapter
append new section showing how to fix `VK_ERROR_INCOMPATIBLE_DRIVER` with latest MoltenVK sdk
2022-08-01 10:46:08 +08:00
Alexander Overvoorde 5c332d33a6 Fix spelling error 2022-07-13 21:34:54 +02:00
Sascha Willems dc4d8d2544 Update tutorial to use dynamic state for viewport and scissor (#293)
* Prefer use of dynamic state for viewport and scissor

* Slight rewording, working in-page anchor

* Updated command buffers chapter and code to use dynamic viewport and scissor state

* Updated swap chain recreation chapter

No more need to recreate the graphics pipeline as viewport and scissor state are now dynamic

* Updated command buffer chapter code to use dynamic viewport and scissor

* Removed render pass destruction/creation for swap chain recreation

This is not needed anymore

* Use dynamic state for viewport and scissor for samples after the fixed function chapter

* Use dynamic state for viewport and scissor for samples after the swap chain recreation chapter

Removed render pass destruction/creation for swap chain recreation, no longer necessary

* Removed duplicate code

* Wording change

* Changed wording on chapter intro, moved dynamic state paragraph to the top

* Fixed wording

* Fixed wording

* C++ style cast

* Wording

* Wording

* Wording

* Added note on renderpass recreation

* Apply suggestions from code review

Incorporate suggestions

Co-authored-by: Alexander Overvoorde <overv161@gmail.com>

* Added dynamic state to conclusion chapter

* Remove unnecessary link

* Remove code referencing command buffers too early

Co-authored-by: Alexander Overvoorde <overv161@gmail.com>
2022-07-03 14:03:58 +02:00
Alexander Overvoorde 3a9c98c745 Fix vertex buffer/shader mixup 2022-06-27 21:18:43 +02:00
Alexander Overvoorde 54f49ba59b Fix inconsistency between tutorial and code 2022-05-21 16:54:45 +02:00