Trait DynQueue
pub trait DynQueue: DynResource {
// Required methods
unsafe fn submit(
&self,
command_buffers: &[&(dyn DynCommandBuffer + 'static)],
surface_textures: &[&(dyn DynSurfaceTexture + 'static)],
signal_fence: (&mut (dyn DynFence + 'static), u64),
) -> Result<(), DeviceError>;
unsafe fn present(
&self,
surface: &(dyn DynSurface + 'static),
texture: Box<dyn DynSurfaceTexture>,
) -> Result<(), SurfaceError>;
unsafe fn get_timestamp_period(&self) -> f32;
}Available on crate feature
unstable-wgpu-29 only.Required Methods§
unsafe fn submit( &self, command_buffers: &[&(dyn DynCommandBuffer + 'static)], surface_textures: &[&(dyn DynSurfaceTexture + 'static)], signal_fence: (&mut (dyn DynFence + 'static), u64), ) -> Result<(), DeviceError>
unsafe fn present( &self, surface: &(dyn DynSurface + 'static), texture: Box<dyn DynSurfaceTexture>, ) -> Result<(), SurfaceError>
unsafe fn get_timestamp_period(&self) -> f32
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".