pebble-engine 0.1.9

A modular, ECS-style graphics/app framework for Rust.
Documentation
1
2
3
4
5
6
7
8
use crate::assets::dependent_asset_plugin::Dependencies;

pub trait DeviceUpload<D>: 'static + Send + Sync + Sized {
    type Source: 'static + Send + Sync;
    type Deps<'a>: Dependencies<'a>;

    fn upload<'a>(source: &Self::Source, device: &D, deps: &Self::Deps<'a>) -> Self;
}