gpu: add BufferBindingType enum

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-09 10:11:30 -07:00 committed by Stephen Gutekanst
parent ce0389df23
commit 0ddbfaf2b3
3 changed files with 9 additions and 8 deletions

View file

@ -167,6 +167,13 @@ pub const BlendOperation = enum(u32) {
max = 0x00000004,
};
pub const BufferBindingType = enum(u32) {
none = 0x00000000,
uniform = 0x00000001,
storage = 0x00000002,
read_only_storage = 0x00000003,
};
test "name" {
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
}
@ -178,4 +185,5 @@ test "syntax" {
_ = AlphaMode;
_ = BlendFactor;
_ = BlendOperation;
_ = BufferBindingType;
}