gpu: add MapMode enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
b4a887e449
commit
7e2d92db3e
2 changed files with 8 additions and 0 deletions
|
|
@ -443,6 +443,12 @@ pub const ColorWriteMask = enum(u32) {
|
||||||
all = 0x0000000F,
|
all = 0x0000000F,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const MapMode = enum(u32) {
|
||||||
|
none = 0x00000000,
|
||||||
|
read = 0x00000001,
|
||||||
|
write = 0x00000002,
|
||||||
|
};
|
||||||
|
|
||||||
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"));
|
||||||
}
|
}
|
||||||
|
|
@ -489,4 +495,5 @@ test "syntax" {
|
||||||
_ = VertexStepMode;
|
_ = VertexStepMode;
|
||||||
_ = BufferUsage;
|
_ = BufferUsage;
|
||||||
_ = ColorWriteMask;
|
_ = ColorWriteMask;
|
||||||
|
_ = MapMode;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,7 @@ pub const VertexFormat = @import("enums.zig").VertexFormat;
|
||||||
pub const VertexStepMode = @import("enums.zig").VertexStepMode;
|
pub const VertexStepMode = @import("enums.zig").VertexStepMode;
|
||||||
pub const BufferUsage = @import("enums.zig").BufferUsage;
|
pub const BufferUsage = @import("enums.zig").BufferUsage;
|
||||||
pub const ColorWriteMask = @import("enums.zig").ColorWriteMask;
|
pub const ColorWriteMask = @import("enums.zig").ColorWriteMask;
|
||||||
|
pub const MapMode = @import("enums.zig").MapMode;
|
||||||
|
|
||||||
test "syntax" {
|
test "syntax" {
|
||||||
_ = Interface;
|
_ = Interface;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue