pub struct RenderClient<T, E> { /* private fields */ }Available on crate feature
wasapi only.Expand description
A typed render client.
Implementations§
Source§impl<T> RenderClient<T, Event>
impl<T> RenderClient<T, Event>
Sourcepub fn buffer_mut(&mut self) -> Result<BufferMut<'_, T>, Error>
pub fn buffer_mut(&mut self) -> Result<BufferMut<'_, T>, Error>
Get access to the raw mutable buffer.
This will block until it is appropriate to submit a buffer.
Source§impl<T> RenderClient<T, AsyncEvent>
impl<T> RenderClient<T, AsyncEvent>
Sourcepub async fn buffer_mut_async(&mut self) -> Result<BufferMut<'_, T>, Error>
Available on crate feature events-driver only.
pub async fn buffer_mut_async(&mut self) -> Result<BufferMut<'_, T>, Error>
events-driver only.Get access to the raw mutable buffer.
This will block until it is appropriate to submit a buffer.
Trait Implementations§
impl<T, E> Send for RenderClient<T, E>
Auto Trait Implementations§
impl<T, E> Freeze for RenderClient<T, E>
impl<T, E> RefUnwindSafe for RenderClient<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> !Sync for RenderClient<T, E>
impl<T, E> Unpin for RenderClient<T, E>where
T: Unpin,
impl<T, E> UnwindSafe for RenderClient<T, E>where
E: RefUnwindSafe,
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more