gpu: add BlendFactor enum

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-10 21:33:25 -07:00 committed by Stephen Gutekanst
parent 78685c19a0
commit 8115d0cbf7
2 changed files with 16 additions and 17 deletions

View file

@ -26,3 +26,19 @@ pub fn backendTypeName(t: BackendType) []const u8 {
.opengles => "OpenGLES",
};
}
pub const BlendFactor = enum(u32) {
zero = 0x00000000,
one = 0x00000001,
src = 0x00000002,
one_minus_src = 0x00000003,
src_alpha = 0x00000004,
one_minus_src_alpha = 0x00000005,
dst = 0x00000006,
one_minus_dst = 0x00000007,
dst_alpha = 0x00000008,
one_minus_dst_alpha = 0x00000009,
src_alpha_saturated = 0x0000000A,
constant = 0x0000000B,
one_minus_constant = 0x0000000C,
};