Skip to content

Conversation

@Raffaello
Copy link
Contributor

otherwise an error is reported

otherwise an error is reported
Copy link
Collaborator

@SaschaWillems SaschaWillems left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That chapter does not make use of any sycn2 features, so no need to enable that yet.

This should match what the code does instead:

vk::StructureChain<vk::PhysicalDeviceFeatures2, vk::PhysicalDeviceVulkan13Features, vk::PhysicalDeviceExtendedDynamicStateFeaturesEXT> featureChain = {
		    {},                                   // vk::PhysicalDeviceFeatures2
		    {.dynamicRendering = true},           // vk::PhysicalDeviceVulkan13Features
		    {.extendedDynamicState = true}        // vk::PhysicalDeviceExtendedDynamicStateFeaturesEXT
		};

@Raffaello
Copy link
Contributor Author

Raffaello commented Jan 19, 2026

following the tutorial, the program failed without sync2.
as it was explicitly wrote in the error message to enable it.
unless it was a bug in the validation layer.

besides i was using vulkan api 1.4 not 1.3 if it means anything.

p.s.
also there are quite few holes in the tutorial that i filled the gaps with old tutorial, it might also this one.

@Raffaello
Copy link
Contributor Author

Raffaello commented Jan 19, 2026

besides please also note that in the C++ code example: https://docs.vulkan.org/tutorial/latest/_attachments/04_logical_device.cpp

has these required extensions:

std::vector<const char *> requiredDeviceExtension = {
	    vk::KHRSwapchainExtensionName,
	    vk::KHRSpirv14ExtensionName,
	    vk::KHRSynchronization2ExtensionName,
	    vk::KHRCreateRenderpass2ExtensionName};

@SaschaWillems
Copy link
Collaborator

We have recently removed most of those extensions, see #260. Docs.vulkan.org prob. hasn't been updated yet.

@Raffaello
Copy link
Contributor Author

We have recently removed most of those extensions, see #260. Docs.vulkan.org prob. hasn't been updated yet.

@SaschaWillems thanks for that.
Yes it isn't. (http://docs.vulkan.org/tutorial/latest/03_Drawing_a_triangle/00_Setup/04_Logical_device_and_queues.html)

I found also that in other pages is was referencing to the class QueueFamiliIndices of the older tutorial but it was never mentioned in the new one as there is somewhere some indices
ref: https://docs.vulkan.org/tutorial/latest/03_Drawing_a_triangle/01_Presentation/00_Window_surface.html

like this page is "not ok", as well its code after: https://docs.vulkan.org/tutorial/latest/_attachments/05_window_surface.cpp
doesn't neither have a word with indices.
I "understood" it, or better i am still try to grasp a better vulkan understanding as a beginner, becase i had started before with the older one: https://vulkan-tutorial.com/Drawing_a_triangle/Presentation/Window_surface

and closed that gap.
but anyway it would be very great if the modern tutorial would be polished as sometimes is also not so linear to follow, something to understand will be understood a page after and requires to go back one page and so on. (but that might be ok as it is part of the learning process).

@SaschaWillems
Copy link
Collaborator

SaschaWillems commented Jan 20, 2026

The docs site is updated when spec updates are released, so updates can take up to a week before they show up there.

We are aware of the issue regarding differences in documentation and code, and they'll be fixed (see the other issues).

Fyi @gpx1000

@Raffaello
Copy link
Contributor Author

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants