gpu: implement Device.tick

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-18 15:08:12 -07:00 committed by Stephen Gutekanst
parent 789f6291e4
commit 482d5aaa34
2 changed files with 11 additions and 2 deletions

View file

@ -533,6 +533,11 @@ const device_vtable = Device.VTable{
);
}
}).createRenderPipelineAsync,
.tick = (struct {
pub fn tick(ptr: *anyopaque) void {
c.wgpuDeviceTick(@ptrCast(c.WGPUDevice, ptr));
}
}.tick),
};
inline fn convertComputePipelineDescriptor(descriptor: *const ComputePipeline.Descriptor) c.WGPUComputePipelineDescriptor {