gpu: add TextureComponentType enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
2c8ef8d67d
commit
3395da08b0
2 changed files with 17 additions and 0 deletions
|
|
@ -349,6 +349,19 @@ pub const TextureAspect = enum(u32) {
|
|||
plane1_only = 0x00000004,
|
||||
};
|
||||
|
||||
pub const TextureComponentType = enum(u32) {
|
||||
float = 0x00000000,
|
||||
sint = 0x00000001,
|
||||
uint = 0x00000002,
|
||||
depth_comparison = 0x00000003,
|
||||
};
|
||||
|
||||
pub const TextureDimension = enum(u32) {
|
||||
dimension_1d = 0x00000000,
|
||||
dimension_2d = 0x00000001,
|
||||
dimension_3d = 0x00000002,
|
||||
};
|
||||
|
||||
test "name" {
|
||||
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
|
||||
}
|
||||
|
|
@ -387,4 +400,6 @@ test "syntax" {
|
|||
_ = StorageTextureAccess;
|
||||
_ = StoreOp;
|
||||
_ = TextureAspect;
|
||||
_ = TextureComponentType;
|
||||
_ = TextureDimension;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -71,6 +71,8 @@ pub const StencilOperation = @import("enums.zig").StencilOperation;
|
|||
pub const StorageTextureAccess = @import("enums.zig").StorageTextureAccess;
|
||||
pub const StoreOp = @import("enums.zig").StoreOp;
|
||||
pub const TextureAspect = @import("enums.zig").TextureAspect;
|
||||
pub const TextureComponentType = @import("enums.zig").TextureComponentType;
|
||||
pub const TextureDimension = @import("enums.zig").TextureDimension;
|
||||
|
||||
test "syntax" {
|
||||
_ = Interface;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue