gpu: centralize TextureUsage -> enums.zig
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
37c8fd797f
commit
fccb85a6e7
5 changed files with 13 additions and 12 deletions
|
|
@ -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"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue