gpu: convert Texture.Usage to packed struct

This commit is contained in:
Silver 2022-04-07 03:25:58 +01:00 committed by Stephen Gutekanst
parent adf5332969
commit 614322edc7
4 changed files with 35 additions and 14 deletions

View file

@ -57,7 +57,7 @@ pub const Descriptor = struct {
pub fn equal(a: *const Descriptor, b: *const Descriptor) bool {
if ((a.label == null) != (b.label == null)) return false;
if (a.label != null and !std.mem.eql(u8, a.label.?, b.label.?)) return false;
if (a.usage != b.usage) return false;
if (!a.usage.equal(b.usage)) return false;
if (a.format != b.format) return false;
if (a.width != b.width) return false;
if (a.height != b.height) return false;