gpu: add Device.destroy
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
398d97443f
commit
cd2dc0c2e8
2 changed files with 12 additions and 2 deletions
|
|
@ -377,6 +377,11 @@ const device_vtable = Device.VTable{
|
|||
));
|
||||
}
|
||||
}).nativeCreateSwapChain,
|
||||
.destroy = (struct {
|
||||
pub fn destroy(ptr: *anyopaque) void {
|
||||
c.wgpuDeviceDestroy(@ptrCast(c.WGPUDestroy, ptr));
|
||||
}
|
||||
}).destroy,
|
||||
};
|
||||
|
||||
// TODO: maybe make Limits an extern struct that can be cast?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue