gpu: implement Surface methods
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
5e613fd464
commit
c2dffd34a1
1 changed files with 7 additions and 4 deletions
|
|
@ -1,11 +1,14 @@
|
||||||
const ChainedStruct = @import("types.zig").ChainedStruct;
|
const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||||
|
const impl = @import("interface.zig").impl;
|
||||||
|
|
||||||
pub const Surface = *opaque {
|
pub const Surface = *opaque {
|
||||||
// TODO
|
pub inline fn reference(surface: Surface) void {
|
||||||
// pub inline fn surfaceReference(surface: gpu.Surface) void {
|
impl.surfaceReference(surface);
|
||||||
|
}
|
||||||
|
|
||||||
// TODO
|
pub inline fn release(surface: Surface) void {
|
||||||
// pub inline fn surfaceRelease(surface: gpu.Surface) void {
|
impl.surfaceRelease(surface);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const SurfaceDescriptor = extern struct {
|
pub const SurfaceDescriptor = extern struct {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue