gpu: prepare to implement Surface
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
9888d8fe36
commit
64e023c992
4 changed files with 74 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue