gpu: prepare Device limits/features

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-18 19:02:11 -07:00 committed by Stephen Gutekanst
parent e7526a868d
commit 37d8113e24
2 changed files with 13 additions and 4 deletions

View file

@ -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,
};