pebble-engine 0.1.6

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, prelude::Backend};

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

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