gpu: add AlphaMode enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
fccb85a6e7
commit
0685fea109
1 changed files with 5 additions and 0 deletions
|
|
@ -138,6 +138,11 @@ pub const TextureUsage = enum(u32) {
|
||||||
present = 0x00000020,
|
present = 0x00000020,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const AlphaMode = enum(u32) {
|
||||||
|
premultiplied = 0x00000000,
|
||||||
|
unpremultiplied = 0x00000001,
|
||||||
|
};
|
||||||
|
|
||||||
test "name" {
|
test "name" {
|
||||||
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
|
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue