gpu: move TextureUsage -> Texture.Usage

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-11 15:43:28 -07:00 committed by Stephen Gutekanst
parent 58c27b41a8
commit 281d6a2016
5 changed files with 15 additions and 17 deletions

View file

@ -30,6 +30,16 @@ pub inline fn destroy(texture: Texture) void {
texture.vtable.destroy(texture.ptr);
}
pub const Usage = enum(u32) {
none = 0x00000000,
copy_src = 0x00000001,
copy_dst = 0x00000002,
texture_binding = 0x00000004,
storage_binding = 0x00000008,
render_attachment = 0x00000010,
present = 0x00000020,
};
test "syntax" {
_ = VTable;
_ = reference;