gpu: add TextureAspect enum

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-09 10:59:30 -07:00 committed by Stephen Gutekanst
parent 00fceb7ac1
commit 2c8ef8d67d
2 changed files with 10 additions and 0 deletions

View file

@ -341,6 +341,14 @@ pub const StoreOp = enum(u32) {
discard = 0x00000002,
};
pub const TextureAspect = enum(u32) {
all = 0x00000000,
stencil_only = 0x00000001,
depth_only = 0x00000002,
plane0_only = 0x00000003,
plane1_only = 0x00000004,
};
test "name" {
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
}
@ -378,4 +386,5 @@ test "syntax" {
_ = StencilOperation;
_ = StorageTextureAccess;
_ = StoreOp;
_ = TextureAspect;
}