gpu: implement Buffer.unmap
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
1c5c23f101
commit
34ac711d2f
2 changed files with 10 additions and 1 deletions
|
|
@ -976,6 +976,11 @@ const buffer_vtable = Buffer.VTable{
|
|||
c.wgpuBufferDestroy(@ptrCast(c.WGPUBuffer, ptr));
|
||||
}
|
||||
}).destroy,
|
||||
.unmap = (struct {
|
||||
pub fn unmap(ptr: *anyopaque) void {
|
||||
c.wgpuBufferUnmap(@ptrCast(c.WGPUBuffer, ptr));
|
||||
}
|
||||
}).unmap,
|
||||
};
|
||||
|
||||
fn wrapCommandBuffer(buffer: c.WGPUCommandBuffer) CommandBuffer {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue