gpu: correct Texture.Usage -> Texture.UsageFlags

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-15 23:43:46 -07:00 committed by Stephen Gutekanst
parent 684fffb2fb
commit 3309a2c913

View file

@ -135,7 +135,7 @@ pub const Texture = enum(usize) {
uint = 0x00000005,
};
pub const Usage = packed struct {
pub const UsageFlags = packed struct {
copy_src: bool = false,
copy_dst: bool = false,
texture_binding: bool = false,
@ -152,9 +152,9 @@ pub const Texture = enum(usize) {
);
}
pub const none = Usage{};
pub const none = UsageFlags{};
pub fn equal(a: Usage, b: Usage) bool {
pub fn equal(a: UsageFlags, b: UsageFlags) bool {
return @truncate(u6, @bitCast(u32, a)) == @truncate(u6, @bitCast(u32, b));
}
};