gpu: add Adapter.reference
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
6d954555fb
commit
6a3e011809
3 changed files with 14 additions and 12 deletions
|
|
@ -1,14 +1,3 @@
|
|||
// WGPU_EXPORT void wgpuAdapterReference(WGPUAdapter adapter);
|
||||
export fn wgpuAdapterReference(adapter: gpu.Adapter) void {
|
||||
impl.adapterReference(adapter);
|
||||
}
|
||||
pub inline fn adapterReference(adapter: gpu.Adapter) void {
|
||||
_ = adapter;
|
||||
}
|
||||
pub inline fn reference(adapter: Adapter) void {
|
||||
impl.adapterReference(adapter);
|
||||
}
|
||||
|
||||
// WGPU_EXPORT void wgpuAdapterRelease(WGPUAdapter adapter);
|
||||
export fn wgpuAdapterRelease(adapter: gpu.Adapter) void {
|
||||
impl.adapterRelease(adapter);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue