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/HslaColor.rs Normal file
View File

@ -0,0 +1,17 @@
use serde::{Deserialize, Serialize};
#[repr(C)]
#[derive(Copy, Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct HslaColor {
/// Hue component. [0.0, 360.0]
pub hue: f32,
/// Saturation component. [0.0, 1.0]
pub saturation: f32,
/// Lightness component. [0.0, 1.0]
pub lightness: f32,
/// Alpha component. [0.0, 1.0]
pub alpha: f32,
}