mirror of
https://github.com/guilhermewerner/wgpu-renderer
synced 2025-06-16 13:54:21 +00:00
Initial wgpu abstraction
This commit is contained in:
17
Source/Color/RgbaColor.rs
Normal file
17
Source/Color/RgbaColor.rs
Normal 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,
|
||||
}
|
Reference in New Issue
Block a user