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

Fix provenance in direct32 sample #3419

Merged
merged 1 commit into from
Jan 7, 2025
Merged

Conversation

ChrisDenton
Copy link
Collaborator

@ChrisDenton ChrisDenton commented Jan 6, 2025

Using transmute creates a pointer without provenance. Using an as cast instead fixes this.

Fixes: #3406

Using transmute creates a pointer without provenance. Using an `as` cast instead fixes this.
@ChrisDenton
Copy link
Collaborator Author

Note: Ideally we'd use ptr::with_exposed_provenance to make it more explicit but that won't stabilize until 1.84.

Copy link
Collaborator

@kennykerr kennykerr left a comment

Choose a reason for hiding this comment

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

Thanks!

@kennykerr kennykerr merged commit 3566fca into microsoft:master Jan 7, 2025
75 checks passed
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.

Direct3D12 sample doesn't render properly in release builds
3 participants