gpu: add Queue.WorkDoneStatus enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
9b1bee04fd
commit
9f6a3f119a
2 changed files with 7 additions and 8 deletions
|
|
@ -1,13 +1,5 @@
|
||||||
typedef uint32_t WGPUFlags;
|
typedef uint32_t WGPUFlags;
|
||||||
|
|
||||||
typedef enum WGPUQueueWorkDoneStatus {
|
|
||||||
WGPUQueueWorkDoneStatus_Success = 0x00000000,
|
|
||||||
WGPUQueueWorkDoneStatus_Error = 0x00000001,
|
|
||||||
WGPUQueueWorkDoneStatus_Unknown = 0x00000002,
|
|
||||||
WGPUQueueWorkDoneStatus_DeviceLost = 0x00000003,
|
|
||||||
WGPUQueueWorkDoneStatus_Force32 = 0x7FFFFFFF
|
|
||||||
} WGPUQueueWorkDoneStatus;
|
|
||||||
|
|
||||||
typedef enum WGPURenderPassTimestampLocation {
|
typedef enum WGPURenderPassTimestampLocation {
|
||||||
WGPURenderPassTimestampLocation_Beginning = 0x00000000,
|
WGPURenderPassTimestampLocation_Beginning = 0x00000000,
|
||||||
WGPURenderPassTimestampLocation_End = 0x00000001,
|
WGPURenderPassTimestampLocation_End = 0x00000001,
|
||||||
|
|
|
||||||
|
|
@ -1 +1,8 @@
|
||||||
ptr: *anyopaque,
|
ptr: *anyopaque,
|
||||||
|
|
||||||
|
pub const WorkDoneStatus = enum(u32) {
|
||||||
|
success = 0x00000000,
|
||||||
|
err = 0x00000001,
|
||||||
|
unknown = 0x00000002,
|
||||||
|
device_lost = 0x00000003,
|
||||||
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue