gpu: implement Dawn deviceEnumerateFeatures
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
d699199506
commit
8742fbe902
1 changed files with 4 additions and 3 deletions
|
|
@ -540,9 +540,10 @@ pub const Interface = gpu.Interface(struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn deviceEnumerateFeatures(device: *gpu.Device, features: [*]gpu.FeatureName) usize {
|
pub inline fn deviceEnumerateFeatures(device: *gpu.Device, features: [*]gpu.FeatureName) usize {
|
||||||
_ = device;
|
return procs.deviceEnumerateFeatures.?(
|
||||||
_ = features;
|
@ptrCast(c.WGPUDevice, device),
|
||||||
unreachable;
|
@ptrCast([*]c.WGPUFeatureName, features),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn deviceGetLimits(device: *gpu.Device, limits: *gpu.SupportedLimits) bool {
|
pub inline fn deviceGetLimits(device: *gpu.Device, limits: *gpu.SupportedLimits) bool {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue