gpu: centralize TextureUsage -> enums.zig

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-09 09:53:08 -07:00 committed by Stephen Gutekanst
parent 37c8fd797f
commit fccb85a6e7
5 changed files with 13 additions and 12 deletions

View file

@ -128,6 +128,16 @@ pub const TextureFormat = enum(u32) {
r8bg8biplanar420_unorm = 0x00000060,
};
pub const TextureUsage = enum(u32) {
none = 0x00000000,
copy_src = 0x00000001,
copy_dst = 0x00000002,
texture_binding = 0x00000004,
storage_binding = 0x00000008,
render_attachment = 0x00000010,
present = 0x00000020,
};
test "name" {
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
}