gpu: implement Dawn adapterGetLimits

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 15:04:51 -07:00 committed by Stephen Gutekanst
parent a1eeca9581
commit e6905241b8

View file

@ -42,9 +42,10 @@ pub const Interface = gpu.Interface(struct {
}
pub inline fn adapterGetLimits(adapter: *gpu.Adapter, limits: *gpu.SupportedLimits) bool {
_ = adapter;
_ = limits;
unreachable;
return procs.adapterGetLimits.?(
@ptrCast(c.WGPUAdapter, adapter),
@ptrCast(*c.WGPUSupportedLimits, limits),
);
}
pub inline fn adapterGetProperties(adapter: *gpu.Adapter, properties: *gpu.Adapter.Properties) void {