mirror of
https://github.com/guilhermewerner/wgpu-renderer
synced 2025-06-15 13:24:20 +00:00
18 lines
360 B
Rust
18 lines
360 B
Rust
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,
|
|
}
|