blob: a4b3f9aa3e190d37341c7d9a4c84d36da97dc110 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
fn pixel_format_code(comptime a: u8, comptime b: u8, comptime c: u8, comptime d: u8) u32 {
return @as(u32, @intCast(a)) |
(@as(u32, @intCast(b)) << 8) |
(@as(u32, @intCast(c)) << 16) |
(@as(u32, @intCast(d)) << 24);
}
pub const PixelFormat = enum(u32) {
xrgb8888 = pixel_format_code('X', 'R', '2', '4'),
};
|