-
Notifications
You must be signed in to change notification settings - Fork 186
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
extension/ext: Add missing length-rounding in cmd_set_sample_mask()
assert
#895
Conversation
Ah, div_ceil was only stabilized in Rust 1.73. Do you want me to rewrite this function the classic way ( |
That MSRV bump has already happened, to 1.69 which the CI is enforcing. We don't have a strict (written down) MSRV policy other than trying to not bump too eagerly (i.e. at least 6 months) and keeping them to semver-breaking releases. Having |
I see, I changed the content of this PR so it doesn't use |
cmd_set_sample_mask()
We can make a separate PR to preemptively bump the MSRV if deemed necessary. This PR also reminded me of an overwritten setter for Lines 2014 to 2031 in 71387e9
This is to treat nullability properly (where Rust actually has a non- Also, just to make sure, unlike |
cmd_set_sample_mask()
cmd_set_sample_mask()
assert
Yes, the fact that |
Yeah, at least the VUID makes this clear on both cases (which is what the above statement is based on). |
As stated in the vulkan specification for
vkCmdSetSampleMaskEXT
: https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkCmdSetSampleMaskEXT.htmlsample_mask
must be an array of sizeceil(samples/32)
. However right now the ash wrapper for this function is checking that it is of sizefloor(samples/32)
, making this wrapper unusable for any sample count less than 32.