mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Remove !Send + !Sync on command encoders
This commit is contained in:
committed by
Dzmitry Malyshau
parent
c416e3b5ee
commit
302d6c42d1
@@ -878,9 +878,6 @@ impl Drop for CommandBuffer {
|
||||
pub struct CommandEncoder {
|
||||
context: Arc<C>,
|
||||
id: Option<<C as Context>::CommandEncoderId>,
|
||||
/// This type should be !Send !Sync, because it represents an allocation on this thread's
|
||||
/// command buffer.
|
||||
_p: PhantomData<*const u8>,
|
||||
}
|
||||
|
||||
impl Drop for CommandEncoder {
|
||||
@@ -1726,7 +1723,6 @@ impl Device {
|
||||
&self.id,
|
||||
desc,
|
||||
)),
|
||||
_p: Default::default(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user