gpu: update to latest Zig APIs
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
4bc32adeb8
commit
8d3e395e71
4 changed files with 8 additions and 4 deletions
|
|
@ -120,7 +120,11 @@ pub const Device = opaque {
|
|||
status,
|
||||
compute_pipeline,
|
||||
message,
|
||||
<<<<<<< Updated upstream
|
||||
if (Context == void) {} else @as(Context, @ptrCast(@alignCast(@alignOf(Context), userdata))),
|
||||
=======
|
||||
if (Context == void) {} else @as(Context, @ptrCast(@alignCast(userdata))),
|
||||
>>>>>>> Stashed changes
|
||||
);
|
||||
}
|
||||
};
|
||||
|
|
@ -179,7 +183,7 @@ pub const Device = opaque {
|
|||
userdata: ?*anyopaque,
|
||||
) callconv(.C) void {
|
||||
callback(
|
||||
if (Context == void) {} else @as(Context, @ptrCast(@alignCast(@alignOf(Context), userdata))),
|
||||
if (Context == void) {} else @as(Context, @ptrCast(@alignCast(userdata))),
|
||||
status,
|
||||
pipeline,
|
||||
message,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue