gpu: add TextureSampleType enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
3395da08b0
commit
f54af7c572
2 changed files with 11 additions and 0 deletions
|
|
@ -362,6 +362,15 @@ pub const TextureDimension = enum(u32) {
|
|||
dimension_3d = 0x00000002,
|
||||
};
|
||||
|
||||
pub const TextureSampleType = enum(u32) {
|
||||
none = 0x00000000,
|
||||
float = 0x00000001,
|
||||
unfilterable_float = 0x00000002,
|
||||
depth = 0x00000003,
|
||||
sint = 0x00000004,
|
||||
uint = 0x00000005,
|
||||
};
|
||||
|
||||
test "name" {
|
||||
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
|
||||
}
|
||||
|
|
@ -402,4 +411,5 @@ test "syntax" {
|
|||
_ = TextureAspect;
|
||||
_ = TextureComponentType;
|
||||
_ = TextureDimension;
|
||||
_ = TextureSampleType;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -73,6 +73,7 @@ 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;
|
||||
pub const TextureSampleType = @import("enums.zig").TextureSampleType;
|
||||
|
||||
test "syntax" {
|
||||
_ = Interface;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue