gpu: add TextureAspect enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
00fceb7ac1
commit
2c8ef8d67d
2 changed files with 10 additions and 0 deletions
|
|
@ -341,6 +341,14 @@ pub const StoreOp = enum(u32) {
|
||||||
discard = 0x00000002,
|
discard = 0x00000002,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const TextureAspect = enum(u32) {
|
||||||
|
all = 0x00000000,
|
||||||
|
stencil_only = 0x00000001,
|
||||||
|
depth_only = 0x00000002,
|
||||||
|
plane0_only = 0x00000003,
|
||||||
|
plane1_only = 0x00000004,
|
||||||
|
};
|
||||||
|
|
||||||
test "name" {
|
test "name" {
|
||||||
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
|
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
|
||||||
}
|
}
|
||||||
|
|
@ -378,4 +386,5 @@ test "syntax" {
|
||||||
_ = StencilOperation;
|
_ = StencilOperation;
|
||||||
_ = StorageTextureAccess;
|
_ = StorageTextureAccess;
|
||||||
_ = StoreOp;
|
_ = StoreOp;
|
||||||
|
_ = TextureAspect;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,7 @@ pub const SamplerBindingType = @import("enums.zig").SamplerBindingType;
|
||||||
pub const StencilOperation = @import("enums.zig").StencilOperation;
|
pub const StencilOperation = @import("enums.zig").StencilOperation;
|
||||||
pub const StorageTextureAccess = @import("enums.zig").StorageTextureAccess;
|
pub const StorageTextureAccess = @import("enums.zig").StorageTextureAccess;
|
||||||
pub const StoreOp = @import("enums.zig").StoreOp;
|
pub const StoreOp = @import("enums.zig").StoreOp;
|
||||||
|
pub const TextureAspect = @import("enums.zig").TextureAspect;
|
||||||
|
|
||||||
test "syntax" {
|
test "syntax" {
|
||||||
_ = Interface;
|
_ = Interface;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue