gpu: implement Dawn adapterGetLimits
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
a1eeca9581
commit
e6905241b8
1 changed files with 4 additions and 3 deletions
|
|
@ -42,9 +42,10 @@ pub const Interface = gpu.Interface(struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn adapterGetLimits(adapter: *gpu.Adapter, limits: *gpu.SupportedLimits) bool {
|
pub inline fn adapterGetLimits(adapter: *gpu.Adapter, limits: *gpu.SupportedLimits) bool {
|
||||||
_ = adapter;
|
return procs.adapterGetLimits.?(
|
||||||
_ = limits;
|
@ptrCast(c.WGPUAdapter, adapter),
|
||||||
unreachable;
|
@ptrCast(*c.WGPUSupportedLimits, limits),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn adapterGetProperties(adapter: *gpu.Adapter, properties: *gpu.Adapter.Properties) void {
|
pub inline fn adapterGetProperties(adapter: *gpu.Adapter, properties: *gpu.Adapter.Properties) void {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue