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

Validate swapchain extent as non-zero #1100

Merged
merged 1 commit into from
Dec 22, 2020

Conversation

cwfitzgerald
Copy link
Member

Connections

Fixes #1026.

Description

Zero area swapchains are UB under vulkan, and should be verboten.

Testing

Not tested

@cwfitzgerald cwfitzgerald requested a review from kvark December 21, 2020 19:35
@cwfitzgerald cwfitzgerald force-pushed the validation-empty-swapchain branch from 4fc544a to a8de8be Compare December 21, 2020 19:35
Copy link
Contributor

@monocodus monocodus bot left a comment

Choose a reason for hiding this comment

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

This is an autogenerated code review.

Checker summary (by rust_clippy):
The tool has found 83 warnings, 0 errors.

Copy link
Contributor

@monocodus monocodus bot left a comment

Choose a reason for hiding this comment

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

This is an autogenerated code review.

Checker summary (by rust_clippy):
The tool has found 84 warnings, 0 errors.

wgpu-core/src/device/mod.rs Outdated Show resolved Hide resolved
wgpu-core/src/device/mod.rs Outdated Show resolved Hide resolved
@cwfitzgerald cwfitzgerald force-pushed the validation-empty-swapchain branch from a8de8be to 073c0b2 Compare December 21, 2020 19:56
Copy link
Member

@kvark kvark left a comment

Choose a reason for hiding this comment

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

thank you!
bors r+

@bors
Copy link
Contributor

bors bot commented Dec 22, 2020

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.

Add Validation for Swapchains of Width or Height 0
2 participants