gpu: add RequestDeviceStatus enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
f354ba3a4c
commit
903a6d204c
2 changed files with 6 additions and 7 deletions
|
|
@ -1,12 +1,5 @@
|
|||
typedef uint32_t WGPUFlags;
|
||||
|
||||
typedef enum WGPURequestDeviceStatus {
|
||||
WGPURequestDeviceStatus_Success = 0x00000000,
|
||||
WGPURequestDeviceStatus_Error = 0x00000001,
|
||||
WGPURequestDeviceStatus_Unknown = 0x00000002,
|
||||
WGPURequestDeviceStatus_Force32 = 0x7FFFFFFF
|
||||
} WGPURequestDeviceStatus;
|
||||
|
||||
typedef enum WGPUSType {
|
||||
WGPUSType_Invalid = 0x00000000,
|
||||
WGPUSType_SurfaceDescriptorFromMetalLayer = 0x00000001,
|
||||
|
|
|
|||
|
|
@ -203,6 +203,12 @@ pub const RequestAdapterStatus = enum(u32) {
|
|||
unknown = 0x00000003,
|
||||
};
|
||||
|
||||
pub const RequestDeviceStatus = enum(u32) {
|
||||
success = 0x00000000,
|
||||
err = 0x00000001,
|
||||
unknown = 0x00000002,
|
||||
};
|
||||
|
||||
test "BackendType name" {
|
||||
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue