Remove MaintainBase (#7508)

This commit is contained in:
Bruce Mitchener 2025-04-11 02:09:29 +07:00 committed by GitHub
parent 3081c4f094
commit fec411cf2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View File

@ -40,6 +40,12 @@ Bottom level categories:
## Unreleased
### Changes
#### General
- Removed `MaintainBase` in favor of using `PollType`. By @waywardmonkeys in [#7508](https://github.com/gfx-rs/wgpu/pull/7508).
## v25.0.0 (2025-04-10)
### Major Features

View File

@ -74,7 +74,7 @@ static QUEUE_SUBMITTED_CALLBACK_ORDERING: GpuTestConfiguration = GpuTestConfigur
});
// No GPU work is happening at this point, but we want to process callbacks.
ctx.async_poll(MaintainBase::Poll).await.unwrap();
ctx.async_poll(PollType::Poll).await.unwrap();
// Extract the ordering out of the arc.
let ordering = Arc::into_inner(ordering).unwrap().into_inner();

View File

@ -33,7 +33,6 @@ pub struct SubmissionIndex {
#[cfg(send_sync)]
static_assertions::assert_impl_all!(SubmissionIndex: Send, Sync);
pub use wgt::PollType as MaintainBase;
/// Passed to [`Device::poll`] to control how and if it should block.
pub type PollType = wgt::PollType<SubmissionIndex>;
#[cfg(send_sync)]