gpu: correct nullability of userdata pointers

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 23:43:16 -07:00 committed by Stephen Gutekanst
parent 000989df5b
commit a468c51ad4
9 changed files with 65 additions and 65 deletions

View file

@ -19,7 +19,7 @@ pub const ShaderModule = opaque {
source: [*:0]const u8,
};
pub inline fn getCompilationInfo(shader_module: *ShaderModule, callback: CompilationInfoCallback, userdata: *anyopaque) void {
pub inline fn getCompilationInfo(shader_module: *ShaderModule, callback: CompilationInfoCallback, userdata: ?*anyopaque) void {
Impl.shaderModuleGetCompilationInfo(shader_module, callback, userdata);
}