bevy_gpu_compute 0.1.2

Empowering anyone to leverage GPU-acceleration with as little barrier-to-entry as possible
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use bevy::prelude::Resource;
use sysinfo::System;

#[derive(Resource)]
pub struct RamLimit {
    pub total_mem: u64,
}

impl Default for RamLimit {
    fn default() -> Self {
        let mut sys = System::new_all();
        // First we update all information of our `System` struct.
        sys.refresh_all();
        RamLimit {
            total_mem: sys.total_memory(),
        }
    }
}