gpu: implement Dawn swapChainRelease

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 15:28:27 -07:00 committed by Stephen Gutekanst
parent 816f4f9cc1
commit 494aa9b35a

View file

@ -1105,8 +1105,7 @@ pub const Interface = gpu.Interface(struct {
}
pub inline fn swapChainRelease(swap_chain: *gpu.SwapChain) void {
_ = swap_chain;
unreachable;
procs.swapChainRelease.?(@ptrCast(c.WGPUSwapChain, swap_chain));
}
pub inline fn textureCreateView(texture: *gpu.Texture, descriptor: ?*const gpu.TextureView.Descriptor) *gpu.TextureView {