mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Comment fixes, header update
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/* Generated with cbindgen:0.14.0 */
|
||||
/* Generated with cbindgen:0.14.1 */
|
||||
|
||||
/* DO NOT MODIFY THIS MANUALLY! This file was generated using cbindgen.
|
||||
* To generate this file:
|
||||
|
||||
@@ -24,6 +24,9 @@ pub struct Id<T>(NonZeroU64, PhantomData<T>);
|
||||
impl<T> Default for Id<T> {
|
||||
fn default() -> Self {
|
||||
Id(
|
||||
// Create an ID that doesn't make sense:
|
||||
// the high `BACKEND_BITS` are to be set to 0, which matches `Backend::Empty`,
|
||||
// the other bits are all 1s
|
||||
unsafe { NonZeroU64::new_unchecked(!0 >> BACKEND_BITS) },
|
||||
PhantomData,
|
||||
)
|
||||
|
||||
@@ -300,7 +300,7 @@ mod test {
|
||||
assert_eq!(
|
||||
ts1.merge(id, &ts2, None),
|
||||
Ok(()),
|
||||
"failed to merge with an emtpy"
|
||||
"failed to merge with an empty"
|
||||
);
|
||||
|
||||
ts2.mips.push(PlaneStates::from_slice(&[(
|
||||
|
||||
Reference in New Issue
Block a user