gpu: add ErrorFilter enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
27c4b2a548
commit
85e431a956
2 changed files with 5 additions and 6 deletions
|
|
@ -1,11 +1,5 @@
|
||||||
typedef uint32_t WGPUFlags;
|
typedef uint32_t WGPUFlags;
|
||||||
|
|
||||||
typedef enum WGPUErrorFilter {
|
|
||||||
WGPUErrorFilter_Validation = 0x00000000,
|
|
||||||
WGPUErrorFilter_OutOfMemory = 0x00000001,
|
|
||||||
WGPUErrorFilter_Force32 = 0x7FFFFFFF
|
|
||||||
} WGPUErrorFilter;
|
|
||||||
|
|
||||||
typedef enum WGPUErrorType {
|
typedef enum WGPUErrorType {
|
||||||
WGPUErrorType_NoError = 0x00000000,
|
WGPUErrorType_NoError = 0x00000000,
|
||||||
WGPUErrorType_Validation = 0x00000001,
|
WGPUErrorType_Validation = 0x00000001,
|
||||||
|
|
|
||||||
|
|
@ -97,6 +97,11 @@ pub const CullMode = enum(u32) {
|
||||||
back = 0x00000002,
|
back = 0x00000002,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const ErrorFilter = enum(u32) {
|
||||||
|
validation = 0x00000000,
|
||||||
|
out_of_memory = 0x00000001,
|
||||||
|
};
|
||||||
|
|
||||||
test "BackendType name" {
|
test "BackendType name" {
|
||||||
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
|
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue