gpu: add Adapter.requestDevice
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
f152d9983a
commit
6d954555fb
3 changed files with 18 additions and 16 deletions
|
|
@ -28,6 +28,10 @@ pub const Adapter = *opaque {
|
|||
pub inline fn hasFeature(adapter: Adapter, feature: FeatureName) bool {
|
||||
return impl.adapterHasFeature(adapter, feature);
|
||||
}
|
||||
|
||||
pub inline fn requestDevice(adapter: Adapter, descriptor: ?*const DeviceDescriptor, callback: RequestDeviceCallback, userdata: *anyopaque) void {
|
||||
impl.adapterRequestDevice(adapter, descriptor, callback, userdata);
|
||||
}
|
||||
};
|
||||
|
||||
pub const RequestDeviceCallback = fn (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue