gpu: prepare Device limits/features
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
e7526a868d
commit
37d8113e24
2 changed files with 13 additions and 4 deletions
|
|
@ -304,7 +304,14 @@ const adapter_vtable = Adapter.VTable{
|
|||
|
||||
fn wrapDevice(device: c.WGPUDevice) Device {
|
||||
// TODO: implement Device interface
|
||||
// WGPU_EXPORT size_t wgpuDeviceEnumerateFeatures(WGPUDevice device, WGPUFeature * features);
|
||||
// WGPU_EXPORT bool wgpuDeviceGetLimits(WGPUDevice device, WGPUSupportedLimits * limits);
|
||||
|
||||
return .{
|
||||
// TODO:
|
||||
.features = undefined,
|
||||
// TODO:
|
||||
.limits = undefined,
|
||||
.ptr = device.?,
|
||||
.vtable = &device_vtable,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue