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