gpu: add VertexStepMode enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
0bf11782ea
commit
1d6be9a92f
2 changed files with 7 additions and 0 deletions
|
|
@ -415,6 +415,11 @@ pub const VertexFormat = enum(u32) {
|
|||
sint32x4 = 0x0000001E,
|
||||
};
|
||||
|
||||
pub const VertexStepMode = enum(u32) {
|
||||
vertex = 0x00000000,
|
||||
instance = 0x00000001,
|
||||
};
|
||||
|
||||
test "name" {
|
||||
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
|
||||
}
|
||||
|
|
@ -458,4 +463,5 @@ test "syntax" {
|
|||
_ = TextureSampleType;
|
||||
_ = TextureViewDimension;
|
||||
_ = VertexFormat;
|
||||
_ = VertexStepMode;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ pub const TextureDimension = @import("enums.zig").TextureDimension;
|
|||
pub const TextureSampleType = @import("enums.zig").TextureSampleType;
|
||||
pub const TextureViewDimension = @import("enums.zig").TextureViewDimension;
|
||||
pub const VertexFormat = @import("enums.zig").VertexFormat;
|
||||
pub const VertexStepMode = @import("enums.zig").VertexStepMode;
|
||||
|
||||
test "syntax" {
|
||||
_ = Interface;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue