gpu: fix redeclaration of function parameter errors

This changed in the latest version of Zig to be more strict.

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-08-18 22:55:41 -07:00
parent 9406326cd8
commit 381f2fe9c5
6 changed files with 22 additions and 22 deletions

View file

@ -34,7 +34,7 @@ pub const Instance = opaque {
) void {
const Context = @TypeOf(context);
const Helper = struct {
pub fn callback(
pub fn cCallback(
status: RequestAdapterStatus,
adapter: *Adapter,
message: ?[*:0]const u8,
@ -48,7 +48,7 @@ pub const Instance = opaque {
);
}
};
Impl.instanceRequestAdapter(instance, options, Helper.callback, if (Context == void) null else context);
Impl.instanceRequestAdapter(instance, options, Helper.cCallback, if (Context == void) null else context);
}
pub inline fn reference(instance: *Instance) void {