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};

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