gpu: add LoggingType enum

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-11 07:54:12 -07:00 committed by Stephen Gutekanst
parent 1aeefec62b
commit 18dd84d6a5
2 changed files with 7 additions and 8 deletions

View file

@ -1,13 +1,5 @@
typedef uint32_t WGPUFlags;
typedef enum WGPULoggingType {
WGPULoggingType_Verbose = 0x00000000,
WGPULoggingType_Info = 0x00000001,
WGPULoggingType_Warning = 0x00000002,
WGPULoggingType_Error = 0x00000003,
WGPULoggingType_Force32 = 0x7FFFFFFF
} WGPULoggingType;
typedef enum WGPUPipelineStatisticName {
WGPUPipelineStatisticName_VertexShaderInvocations = 0x00000000,
WGPUPipelineStatisticName_ClipperInvocations = 0x00000001,

View file

@ -150,6 +150,13 @@ pub const LoadOp = enum(u32) {
load = 0x00000002,
};
pub const LoggingType = enum(u32) {
verbose = 0x00000000,
info = 0x00000001,
warning = 0x00000002,
err = 0x00000003,
};
test "BackendType name" {
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
}