@@ -80,29 +80,29 @@ fn b2gl(b: bool) types.Boolean {
80
80
binding .FALSE ;
81
81
}
82
82
83
- pub const DebugSource = enum {
84
- api ,
85
- window_system ,
86
- shader_compiler ,
87
- third_party ,
88
- application ,
89
- other ,
83
+ pub const DebugSource = enum ( types . Enum ) {
84
+ api = binding . DEBUG_SOURCE_API ,
85
+ window_system = binding . DEBUG_SOURCE_WINDOW_SYSTEM ,
86
+ shader_compiler = binding . DEBUG_SOURCE_SHADER_COMPILER ,
87
+ third_party = binding . DEBUG_SOURCE_THIRD_PARTY ,
88
+ application = binding . DEBUG_SOURCE_APPLICATION ,
89
+ other = binding . DEBUG_SOURCE_OTHER ,
90
90
};
91
91
92
- pub const DebugMessageType = enum {
93
- @"error" ,
94
- deprecated_behavior ,
95
- undefined_behavior ,
96
- portability ,
97
- performance ,
98
- other ,
92
+ pub const DebugMessageType = enum ( types . Enum ) {
93
+ @"error" = binding . DEBUG_TYPE_ERROR ,
94
+ deprecated_behavior = binding . DEBUG_TYPE_DEPRECATED_BEHAVIOR ,
95
+ undefined_behavior = binding . DEBUG_TYPE_UNDEFINED_BEHAVIOR ,
96
+ portability = binding . DEBUG_TYPE_PORTABILITY ,
97
+ performance = binding . DEBUG_TYPE_PERFORMANCE ,
98
+ other = binding . DEBUG_TYPE_OTHER ,
99
99
};
100
100
101
- pub const DebugSeverity = enum {
102
- high ,
103
- medium ,
104
- low ,
105
- notification ,
101
+ pub const DebugSeverity = enum ( types . Enum ) {
102
+ high = binding . DEBUG_SEVERITY_HIGH ,
103
+ medium = binding . DEBUG_SEVERITY_MEDIUM ,
104
+ low = binding . DEBUG_SEVERITY_LOW ,
105
+ notification = binding . DEBUG_SEVERITY_NOTIFICATION ,
106
106
};
107
107
108
108
fn DebugMessageCallbackHandler (comptime Context : type ) type {
0 commit comments