gpu: implement Dawn adapterCreateDevice
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
48bc09ca93
commit
51c98a3986
1 changed files with 4 additions and 3 deletions
|
|
@ -28,9 +28,10 @@ pub const Interface = gpu.Interface(struct {
|
|||
}
|
||||
|
||||
pub inline fn adapterCreateDevice(adapter: *gpu.Adapter, descriptor: ?*const gpu.Device.Descriptor) ?*gpu.Device {
|
||||
_ = adapter;
|
||||
_ = descriptor;
|
||||
unreachable;
|
||||
return @ptrCast(?*gpu.Device, procs.adapterCreateDevice.?(
|
||||
@ptrCast(c.WGPUAdapter, adapter),
|
||||
@ptrCast(?*const c.WGPUDeviceDescriptor, descriptor),
|
||||
));
|
||||
}
|
||||
|
||||
pub inline fn adapterEnumerateFeatures(adapter: *gpu.Adapter, features: ?[*]gpu.FeatureName) usize {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue