tawasuyu/llimphi
Sovereign retained-mode GPU UI framework in Rust (wgpu+vello+taffy+parley), Elm loop, 40+ widgets.
1// Copyright 2024 the Velato Authors
2// SPDX-License-Identifier: Apache-2.0 OR MIT
3
4use serde_repr::{Deserialize_repr, Serialize_repr};
5
6/// How a layer should mask another layer
7#[repr(u8)]
8#[derive(Deserialize_repr, Serialize_repr, Debug, Clone, PartialEq)]
9pub enum MatteMode {
10 Normal = 0,
11 Alpha = 1,
12 InvertedAlpha = 2,
13 Luma = 3,
14 InvertedLuma = 4,
15}