Skip to content

Check presentation support in isDeviceSuitable - #474

Open
gpx1000 wants to merge 1 commit into
KhronosGroup:mainfrom
gpx1000:fix/457-isdevicesuitable-presentation
Open

Check presentation support in isDeviceSuitable#474
gpx1000 wants to merge 1 commit into
KhronosGroup:mainfrom
gpx1000:fix/457-isdevicesuitable-presentation

Conversation

@gpx1000

@gpx1000 gpx1000 commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

isDeviceSuitable() only checked for a graphics-capable queue family, but createLogicalDevice() later requires one that supports both graphics and presentation. A device could pass suitability and then throw in createLogicalDevice(). Extends the existing search to also require getSurfaceSupportKHR(qfpIndex, *surface), applied consistently across every chapter from window-surface creation onward.

Fixes #457.

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.

Should isDeviceSuitable() also check presentation support in the Window Surface chapter?

1 participant