gpu: add RequestDeviceCallback

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-25 00:48:37 -07:00 committed by Stephen Gutekanst
parent 3f3f647b99
commit cd4021fa56
2 changed files with 8 additions and 2 deletions

View file

@ -1,5 +1,3 @@
typedef void (*WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, char const * message, void * userdata);
// Methods of Adapter
// WGPU_EXPORT bool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature);
export fn wgpuAdapterHasFeature(adapter: gpu.Adapter, feature: gpu.FeatureName) bool {