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

@ -38,7 +38,7 @@ pub const ShaderModule = opaque {
) void {
const Context = @TypeOf(context);
const Helper = struct {
pub fn callback(
pub fn cCallback(
status: CompilationInfoRequestStatus,
compilation_info: *const CompilationInfo,
userdata: ?*anyopaque,
@ -50,7 +50,7 @@ pub const ShaderModule = opaque {
);
}
};
Impl.shaderModuleGetCompilationInfo(shader_module, Helper.callback, if (Context == void) null else context);
Impl.shaderModuleGetCompilationInfo(shader_module, Helper.cCallback, if (Context == void) null else context);
}
pub inline fn setLabel(shader_module: *ShaderModule, label: [*:0]const u8) void {