Skip to main content

GpuBufferExt

Trait GpuBufferExt 

Source
pub trait GpuBufferExt<T: GpuDataType> {
    // Required methods
    fn to_host(&self) -> Result<Vec<T>, GpuError>;
    fn to_host_range(&self, range: Range<usize>) -> Result<Vec<T>, GpuError>;
}

Required Methods§

Source

fn to_host(&self) -> Result<Vec<T>, GpuError>

Source

fn to_host_range(&self, range: Range<usize>) -> Result<Vec<T>, GpuError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§