Trait GpuAsyncReadBufferTrait

Source
pub trait GpuAsyncReadBufferTrait: Downcast {
    // Required methods
    fn schedule_pixels_transfer(
        &self,
        framebuffer: &dyn GpuFrameBufferTrait,
        color_buffer_index: u32,
        rect: Option<Rect<i32>>,
    ) -> Result<(), FrameworkError>;
    fn is_request_running(&self) -> bool;
    fn try_read(&self) -> Option<Vec<u8>>;
}

Required Methods§

Source

fn schedule_pixels_transfer( &self, framebuffer: &dyn GpuFrameBufferTrait, color_buffer_index: u32, rect: Option<Rect<i32>>, ) -> Result<(), FrameworkError>

Source

fn is_request_running(&self) -> bool

Source

fn try_read(&self) -> Option<Vec<u8>>

Implementations§

Source§

impl dyn GpuAsyncReadBufferTrait

Source

pub fn try_read_of_type<T>(&self) -> Option<Vec<T>>
where T: Pod,

Implementors§