gpu: implement Surface methods

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-26 19:41:10 -07:00 committed by Stephen Gutekanst
parent 5e613fd464
commit c2dffd34a1

View file

@ -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 {