From c2dffd34a1e34c122ed6c61c02ec6f028ed49c8e Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Tue, 26 Jul 2022 19:41:10 -0700 Subject: [PATCH] gpu: implement Surface methods Signed-off-by: Stephen Gutekanst --- gpu/src/surface.zig | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gpu/src/surface.zig b/gpu/src/surface.zig index 26e994e1..70aa52fe 100644 --- a/gpu/src/surface.zig +++ b/gpu/src/surface.zig @@ -1,11 +1,14 @@ const ChainedStruct = @import("types.zig").ChainedStruct; +const impl = @import("interface.zig").impl; pub const Surface = *opaque { - // TODO - // pub inline fn surfaceReference(surface: gpu.Surface) void { + pub inline fn reference(surface: Surface) void { + impl.surfaceReference(surface); + } - // TODO - // pub inline fn surfaceRelease(surface: gpu.Surface) void { + pub inline fn release(surface: Surface) void { + impl.surfaceRelease(surface); + } }; pub const SurfaceDescriptor = extern struct {