gpu: add TextureViewDimension enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
f54af7c572
commit
7a2ac9cbb8
2 changed files with 12 additions and 0 deletions
|
|
@ -371,6 +371,16 @@ pub const TextureSampleType = enum(u32) {
|
|||
uint = 0x00000005,
|
||||
};
|
||||
|
||||
pub const TextureViewDimension = enum(u32) {
|
||||
dimension_none = 0x00000000,
|
||||
dimension_1d = 0x00000001,
|
||||
dimension_2d = 0x00000002,
|
||||
dimension_2d_array = 0x00000003,
|
||||
dimension_cube = 0x00000004,
|
||||
dimension_cube_array = 0x00000005,
|
||||
dimension_3d = 0x00000006,
|
||||
};
|
||||
|
||||
test "name" {
|
||||
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
|
||||
}
|
||||
|
|
@ -412,4 +422,5 @@ test "syntax" {
|
|||
_ = TextureComponentType;
|
||||
_ = TextureDimension;
|
||||
_ = TextureSampleType;
|
||||
_ = TextureViewDimension;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue