pub struct Queue { /* private fields */ }Expand description
the device’s queue
Implementations§
Source§impl Queue
impl Queue
Sourcepub fn submit<'a, I: IntoIterator<Item = CommandBuffer<'a>>>(
&self,
cmds: I,
) -> Result<SubmitId>
pub fn submit<'a, I: IntoIterator<Item = CommandBuffer<'a>>>( &self, cmds: I, ) -> Result<SubmitId>
run command buffers in order -> their number
Sourcepub fn write_buffer<T: Pod>(
&self,
buf: &Buffer,
offset: u64,
data: &[T],
) -> Result<()>
pub fn write_buffer<T: Pod>( &self, buf: &Buffer, offset: u64, data: &[T], ) -> Result<()>
write data into a buffer at offset, before the next submission
Sourcepub fn write_texture(
&self,
dst: &TextureRegion<'_>,
data: &[u8],
layout: DataLayout,
_before: Layout,
_after: Layout,
) -> Result<()>
pub fn write_texture( &self, dst: &TextureRegion<'_>, data: &[u8], layout: DataLayout, _before: Layout, _after: Layout, ) -> Result<()>
write texels into a texture region, before the next submission (no layouts here)
Sourcepub fn write_texture_rects(
&self,
t: &Texture,
rects: &[[i32; 4]],
data: &[u8],
stride: u32,
before: Layout,
after: Layout,
) -> Result<()>
pub fn write_texture_rects( &self, t: &Texture, rects: &[[i32; 4]], data: &[u8], stride: u32, before: Layout, after: Layout, ) -> Result<()>
write rectangles (x, y, w, h; clipped to the texture, empty ones skipped) of mip 0, layer 0 from
data, an image of the texture’s size in rows of stride bytes (a framebuffer)
Sourcepub fn write_texture_rects_at(
&self,
t: &Texture,
rects: &[[i32; 4]],
origin: (i32, i32),
data: &[u8],
stride: u32,
_before: Layout,
_after: Layout,
) -> Result<()>
pub fn write_texture_rects_at( &self, t: &Texture, rects: &[[i32; 4]], origin: (i32, i32), data: &[u8], stride: u32, _before: Layout, _after: Layout, ) -> Result<()>
write_texture_rects from an image of another size: rectangles of data go to (x - origin.0,
y - origin.1) of the texture; what lies outside the image or the texture is skipped
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Queue
impl !Send for Queue
impl !Sync for Queue
impl !UnwindSafe for Queue
impl Forget for Queue
impl Freeze for Queue
impl Unpin for Queue
impl UnsafeUnpin for Queue
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