gpu: implement Dawn adapterHasFeature
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
7a2e0c4618
commit
e07e441f0c
1 changed files with 4 additions and 3 deletions
|
|
@ -56,9 +56,10 @@ pub const Interface = gpu.Interface(struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn adapterHasFeature(adapter: *gpu.Adapter, feature: gpu.FeatureName) bool {
|
pub inline fn adapterHasFeature(adapter: *gpu.Adapter, feature: gpu.FeatureName) bool {
|
||||||
_ = adapter;
|
return procs.adapterHasFeature.?(
|
||||||
_ = feature;
|
@ptrCast(c.WGPUAdapter, adapter),
|
||||||
unreachable;
|
@enumToInt(feature),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn adapterRequestDevice(adapter: *gpu.Adapter, descriptor: ?*const gpu.Device.Descriptor, callback: gpu.RequestDeviceCallback, userdata: *anyopaque) void {
|
pub inline fn adapterRequestDevice(adapter: *gpu.Adapter, descriptor: ?*const gpu.Device.Descriptor, callback: gpu.RequestDeviceCallback, userdata: *anyopaque) void {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue