gpu: implement Dawn surfaceRelease

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 15:27:57 -07:00 committed by Stephen Gutekanst
parent 5402215730
commit 3c4c844786

View file

@ -1078,8 +1078,7 @@ pub const Interface = gpu.Interface(struct {
}
pub inline fn surfaceRelease(surface: *gpu.Surface) void {
_ = surface;
unreachable;
procs.surfaceRelease.?(@ptrCast(c.WGPUSurface, surface));
}
pub inline fn swapChainConfigure(swap_chain: *gpu.SwapChain, format: gpu.Texture.Format, allowed_usage: gpu.Texture.UsageFlags, width: u32, height: u32) void {