mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-31 18:27:20 +00:00
shaders: #[repr(u32)]
some enums
This commit is contained in:
parent
3264c6620a
commit
d9cf03c05b
1 changed files with 2 additions and 0 deletions
|
@ -33,6 +33,7 @@ use num_traits::float::Float;
|
|||
#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, node_macro::ChoiceType)]
|
||||
#[cfg_attr(feature = "std", derive(dyn_any::DynAny, specta::Type, serde::Serialize, serde::Deserialize))]
|
||||
#[widget(Dropdown)]
|
||||
#[repr(u32)]
|
||||
pub enum LuminanceCalculation {
|
||||
#[default]
|
||||
#[label("sRGB")]
|
||||
|
@ -562,6 +563,7 @@ pub enum RedGreenBlue {
|
|||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash, node_macro::ChoiceType)]
|
||||
#[cfg_attr(feature = "std", derive(dyn_any::DynAny, specta::Type, serde::Serialize, serde::Deserialize))]
|
||||
#[widget(Radio)]
|
||||
#[repr(u32)]
|
||||
pub enum RedGreenBlueAlpha {
|
||||
#[default]
|
||||
Red,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue