gpu: add ColorWriteMask enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
f41afa2b64
commit
b4a887e449
2 changed files with 11 additions and 0 deletions
|
|
@ -434,6 +434,15 @@ pub const BufferUsage = enum(u32) {
|
|||
query_resolve = 0x00000200,
|
||||
};
|
||||
|
||||
pub const ColorWriteMask = enum(u32) {
|
||||
none = 0x00000000,
|
||||
red = 0x00000001,
|
||||
green = 0x00000002,
|
||||
blue = 0x00000004,
|
||||
alpha = 0x00000008,
|
||||
all = 0x0000000F,
|
||||
};
|
||||
|
||||
test "name" {
|
||||
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
|
||||
}
|
||||
|
|
@ -479,4 +488,5 @@ test "syntax" {
|
|||
_ = VertexFormat;
|
||||
_ = VertexStepMode;
|
||||
_ = BufferUsage;
|
||||
_ = ColorWriteMask;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@ pub const TextureViewDimension = @import("enums.zig").TextureViewDimension;
|
|||
pub const VertexFormat = @import("enums.zig").VertexFormat;
|
||||
pub const VertexStepMode = @import("enums.zig").VertexStepMode;
|
||||
pub const BufferUsage = @import("enums.zig").BufferUsage;
|
||||
pub const ColorWriteMask = @import("enums.zig").ColorWriteMask;
|
||||
|
||||
test "syntax" {
|
||||
_ = Interface;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue