Skip to content

Commit 76dc381

Browse files
Added missing enum values
1 parent 4f6492b commit 76dc381

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

src/zgl.zig

+19-19
Original file line numberDiff line numberDiff line change
@@ -80,29 +80,29 @@ fn b2gl(b: bool) types.Boolean {
8080
binding.FALSE;
8181
}
8282

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,
9090
};
9191

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,
9999
};
100100

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,
106106
};
107107

108108
fn DebugMessageCallbackHandler(comptime Context: type) type {

0 commit comments

Comments
 (0)