pub struct Stream { /* private fields */ }Implementations§
Source§impl Stream
impl Stream
pub fn new(device: &Device, queue: &Queue, desc: StreamDesc) -> Self
pub fn slots(&self) -> u32
pub fn stride(&self) -> u64
pub fn element(&self) -> StreamElement
pub fn size(&self) -> BufferAddress
pub fn buffer(&self) -> &Buffer
pub fn gpu(&self) -> &GpuBuffer
pub fn slot(&self) -> GpuSlot<'_>
pub fn write(&self, queue: &Queue, bytes: &[u8])
pub fn write_at(&self, queue: &Queue, offset: BufferAddress, bytes: &[u8])
pub fn reserve( &mut self, device: &Device, encoder: &mut CommandEncoder, slots: u32, ) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Stream
impl !UnwindSafe for Stream
impl Freeze for Stream
impl Send for Stream
impl Sync for Stream
impl Unpin for Stream
impl UnsafeUnpin for Stream
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