gpu: add Device.LostReason enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
089eb3bdda
commit
27c4b2a548
3 changed files with 6 additions and 7 deletions
|
|
@ -1,11 +1,5 @@
|
|||
typedef uint32_t WGPUFlags;
|
||||
|
||||
typedef enum WGPUDeviceLostReason {
|
||||
WGPUDeviceLostReason_Undefined = 0x00000000,
|
||||
WGPUDeviceLostReason_Destroyed = 0x00000001,
|
||||
WGPUDeviceLostReason_Force32 = 0x7FFFFFFF
|
||||
} WGPUDeviceLostReason;
|
||||
|
||||
typedef enum WGPUErrorFilter {
|
||||
WGPUErrorFilter_Validation = 0x00000000,
|
||||
WGPUErrorFilter_OutOfMemory = 0x00000001,
|
||||
|
|
|
|||
|
|
@ -1 +1,6 @@
|
|||
ptr: *anyopaque,
|
||||
|
||||
pub const LostReason = enum(u32) {
|
||||
undef = 0x00000000,
|
||||
destroyed = 0x00000001,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ pub const CreatePipelineAsyncStatus = enum(u32) {
|
|||
};
|
||||
|
||||
pub const CullMode = enum(u32) {
|
||||
none = 0x00000000,
|
||||
undef = 0x00000000,
|
||||
front = 0x00000001,
|
||||
back = 0x00000002,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue