Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document additional safety requirements of Instance::create_surface #1792

Merged
merged 1 commit into from
Aug 12, 2021

Conversation

ecton
Copy link
Contributor

@ecton ecton commented Aug 12, 2021

Connections

Description
This updates the documentation for Instance::create_surface to include the safety requirement that the underlying window must remain valid for the lifetime of the surface.

Testing
I ran cargo doc and I re-read the sentence a few times :)

In all seriousness, I spent way too much time trying to phrase this change. If anyone has a suggestion for better wording, I'm more than happy to update.

This clarifies that the window that a surface is created on must be kept
alive for the lifetime of the surface. This requirement and a proposal
to change it are described in gfx-rs#1463
Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

LGTM!

@cwfitzgerald cwfitzgerald enabled auto-merge August 12, 2021 16:21
@cwfitzgerald cwfitzgerald merged commit f0520f8 into gfx-rs:master Aug 12, 2021
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.

Vulkan segfault while exiting
2 participants