Initial wgpu abstraction

This commit is contained in:
Werner
2021-11-09 21:07:16 -03:00
parent 15e8989bef
commit b23bc27f55
25 changed files with 775 additions and 209 deletions

17
Source/Color/RgbaColor.rs Normal file
View File

@ -0,0 +1,17 @@
use serde::{Deserialize, Serialize};
#[repr(C)]
#[derive(Copy, Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct RgbaColor {
/// Red component. [0.0, 1.0]
pub red: f32,
/// Green component. [0.0, 1.0]
pub green: f32,
/// Blue component. [0.0, 1.0]
pub blue: f32,
/// Alpha component. [0.0, 1.0]
pub alpha: f32,
}