mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Remove MaintainBase (#7508)
This commit is contained in:
parent
3081c4f094
commit
fec411cf2d
@ -40,6 +40,12 @@ Bottom level categories:
|
|||||||
|
|
||||||
## Unreleased
|
## 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)
|
## v25.0.0 (2025-04-10)
|
||||||
|
|
||||||
### Major Features
|
### Major Features
|
||||||
|
|||||||
@ -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.
|
// 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.
|
// Extract the ordering out of the arc.
|
||||||
let ordering = Arc::into_inner(ordering).unwrap().into_inner();
|
let ordering = Arc::into_inner(ordering).unwrap().into_inner();
|
||||||
|
|||||||
@ -33,7 +33,6 @@ pub struct SubmissionIndex {
|
|||||||
#[cfg(send_sync)]
|
#[cfg(send_sync)]
|
||||||
static_assertions::assert_impl_all!(SubmissionIndex: 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.
|
/// Passed to [`Device::poll`] to control how and if it should block.
|
||||||
pub type PollType = wgt::PollType<SubmissionIndex>;
|
pub type PollType = wgt::PollType<SubmissionIndex>;
|
||||||
#[cfg(send_sync)]
|
#[cfg(send_sync)]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user