gpu: prepare to implement Surface

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-06 20:28:10 -07:00 committed by Stephen Gutekanst
parent 9888d8fe36
commit 64e023c992
4 changed files with 74 additions and 8 deletions

View file

@ -8,5 +8,10 @@ vtable: *const VTable,
pub const VTable = struct {
// TODO(gpu): make these *const fn once stage2 is released.
free: fn (ptr: *anyopaque, buf: []u8, buf_align: u29, ret_addr: usize) void,
deinit: fn (ptr: *anyopaque) void,
};
// TODO:
// WGPU_EXPORT void wgpuInstanceRequestAdapter(WGPUInstance instance, WGPURequestAdapterOptions const * options, WGPURequestAdapterCallback callback, void * userdata);
// WGPU_EXPORT void wgpuInstanceReference(WGPUInstance instance);
// WGPU_EXPORT void wgpuInstanceRelease(WGPUInstance instance);