gpu: add Buffer.MapAsyncStatus
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
87b06cf373
commit
19425d4f86
2 changed files with 9 additions and 10 deletions
|
|
@ -1,15 +1,5 @@
|
|||
typedef uint32_t WGPUFlags;
|
||||
|
||||
typedef enum WGPUBufferMapAsyncStatus {
|
||||
WGPUBufferMapAsyncStatus_Success = 0x00000000,
|
||||
WGPUBufferMapAsyncStatus_Error = 0x00000001,
|
||||
WGPUBufferMapAsyncStatus_Unknown = 0x00000002,
|
||||
WGPUBufferMapAsyncStatus_DeviceLost = 0x00000003,
|
||||
WGPUBufferMapAsyncStatus_DestroyedBeforeCallback = 0x00000004,
|
||||
WGPUBufferMapAsyncStatus_UnmappedBeforeCallback = 0x00000005,
|
||||
WGPUBufferMapAsyncStatus_Force32 = 0x7FFFFFFF
|
||||
} WGPUBufferMapAsyncStatus;
|
||||
|
||||
typedef enum WGPUCompareFunction {
|
||||
WGPUCompareFunction_Undefined = 0x00000000,
|
||||
WGPUCompareFunction_Never = 0x00000001,
|
||||
|
|
|
|||
|
|
@ -6,3 +6,12 @@ pub const BindingType = enum(u32) {
|
|||
storage = 0x00000002,
|
||||
read_only_storage = 0x00000003,
|
||||
};
|
||||
|
||||
pub const MapAsyncStatus = enum(u32) {
|
||||
success = 0x00000000,
|
||||
err = 0x00000001,
|
||||
unknown = 0x00000002,
|
||||
device_lost = 0x00000003,
|
||||
destroyed_before_callback = 0x00000004,
|
||||
unmapped_before_callback = 0x00000005,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue