-
Notifications
You must be signed in to change notification settings - Fork 303
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
Deduped most image/buffer copy validation #4629
Conversation
Previews, as seen when this build job started (0a2332b): |
Oh! Also forgot to mention that I noticed that I missed updating |
|dstTexture|.{{GPUTexture/format}}. | ||
- That aspect must be a valid image copy destination according to [[#depth-formats]]. | ||
- Set |aspectSpecificFormat| to the [=aspect-specific format=] according to [[#depth-formats]]. | ||
- [=validating texture copy range=](|destination|, |copySize|) return `true`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This step seems to be missing now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching that. I tried so hard to make sure everything got pulled over, but with as much rearranging as it required I guess I'm not too surprised I missed a step.
Fixes #1192
Takes a lot of the Texture<->Buffer image copy validation logic and dedups it into a single algorithm. Original issue only requested the "single-aspect" validation bits be deduped, but in the end there was a lot more shared logic between three functions that did that check that could be unified.