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