gpu: add StorageTextureAccess enum

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-09 10:58:40 -07:00 committed by Stephen Gutekanst
parent f3d6d5de1e
commit 3283e8b507
2 changed files with 7 additions and 0 deletions

View file

@ -330,6 +330,11 @@ pub const StencilOperation = enum(u32) {
decrement_wrap = 0x00000007,
};
pub const StorageTextureAccess = enum(u32) {
none = 0x00000000,
write_only = 0x00000001,
};
test "name" {
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
}
@ -365,4 +370,5 @@ test "syntax" {
_ = RenderPassTimestampLocation;
_ = SamplerBindingType;
_ = StencilOperation;
_ = StorageTextureAccess;
}

View file

@ -68,6 +68,7 @@ pub const QueryType = @import("enums.zig").QueryType;
pub const RenderPassTimestampLocation = @import("enums.zig").RenderPassTimestampLocation;
pub const SamplerBindingType = @import("enums.zig").SamplerBindingType;
pub const StencilOperation = @import("enums.zig").StencilOperation;
pub const StorageTextureAccess = @import("enums.zig").StorageTextureAccess;
test "syntax" {
_ = Interface;