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
|
|
@ -32,6 +32,10 @@ pub const Adapter = *opaque {
|
|||
pub inline fn requestDevice(adapter: Adapter, descriptor: ?*const DeviceDescriptor, callback: RequestDeviceCallback, userdata: *anyopaque) void {
|
||||
impl.adapterRequestDevice(adapter, descriptor, callback, userdata);
|
||||
}
|
||||
|
||||
pub inline fn reference(adapter: Adapter) void {
|
||||
impl.adapterReference(adapter);
|
||||
}
|
||||
};
|
||||
|
||||
pub const RequestDeviceCallback = fn (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue