gpu: add StorageTextureAccess enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
f3d6d5de1e
commit
3283e8b507
2 changed files with 7 additions and 0 deletions
|
|
@ -330,6 +330,11 @@ pub const StencilOperation = enum(u32) {
|
||||||
decrement_wrap = 0x00000007,
|
decrement_wrap = 0x00000007,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const StorageTextureAccess = enum(u32) {
|
||||||
|
none = 0x00000000,
|
||||||
|
write_only = 0x00000001,
|
||||||
|
};
|
||||||
|
|
||||||
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"));
|
||||||
}
|
}
|
||||||
|
|
@ -365,4 +370,5 @@ test "syntax" {
|
||||||
_ = RenderPassTimestampLocation;
|
_ = RenderPassTimestampLocation;
|
||||||
_ = SamplerBindingType;
|
_ = SamplerBindingType;
|
||||||
_ = StencilOperation;
|
_ = StencilOperation;
|
||||||
|
_ = StorageTextureAccess;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,7 @@ pub const QueryType = @import("enums.zig").QueryType;
|
||||||
pub const RenderPassTimestampLocation = @import("enums.zig").RenderPassTimestampLocation;
|
pub const RenderPassTimestampLocation = @import("enums.zig").RenderPassTimestampLocation;
|
||||||
pub const SamplerBindingType = @import("enums.zig").SamplerBindingType;
|
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;
|
||||||
|
|
||||||
test "syntax" {
|
test "syntax" {
|
||||||
_ = Interface;
|
_ = Interface;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue