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,
|
||||
};
|
||||
|
||||
pub const MapMode = enum(u32) {
|
||||
none = 0x00000000,
|
||||
read = 0x00000001,
|
||||
write = 0x00000002,
|
||||
};
|
||||
|
||||
test "name" {
|
||||
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
|
||||
}
|
||||
|
|
@ -489,4 +495,5 @@ test "syntax" {
|
|||
_ = VertexStepMode;
|
||||
_ = BufferUsage;
|
||||
_ = ColorWriteMask;
|
||||
_ = MapMode;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue