gpu: add DeviceLostReason enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
4fb873b4a3
commit
69e69c0d5f
2 changed files with 7 additions and 0 deletions
|
|
@ -227,6 +227,11 @@ pub const CullMode = enum(u32) {
|
|||
back = 0x00000002,
|
||||
};
|
||||
|
||||
pub const DeviceLostReason = enum(u32) {
|
||||
none = 0x00000000,
|
||||
destroyed = 0x00000001,
|
||||
};
|
||||
|
||||
test "name" {
|
||||
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
|
||||
}
|
||||
|
|
@ -246,4 +251,5 @@ test "syntax" {
|
|||
_ = ComputePassTimestampLocation;
|
||||
_ = CreatePipelineAsyncStatus;
|
||||
_ = CullMode;
|
||||
_ = DeviceLostReason;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ pub const CompilationMessageType = @import("enums.zig").CompilationMessageType;
|
|||
pub const ComputePassTimestampLocation = @import("enums.zig").ComputePassTimestampLocation;
|
||||
pub const CreatePipelineAsyncStatus = @import("enums.zig").CreatePipelineAsyncStatus;
|
||||
pub const CullMode = @import("enums.zig").CullMode;
|
||||
pub const DeviceLostReason = @import("enums.zig").DeviceLostReason;
|
||||
|
||||
test "syntax" {
|
||||
_ = Interface;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue