mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01:00
This PR removes optional backend features in favor of run-time selection at the `request_adapter` entry point. Adapters from all supported gpu backends on the platform are reported. It also makes gfx-rs dependency to be public (for now).
18 lines
350 B
C
18 lines
350 B
C
#include "./../../ffi/wgpu-remote.h"
|
|
#include <stdio.h>
|
|
|
|
int main() {
|
|
WGPUInfrastructure infra = wgpu_initialize();
|
|
|
|
if (!infra.client || !infra.server || infra.error) {
|
|
printf("Cannot initialize WGPU: %s", infra.error);
|
|
return 1;
|
|
}
|
|
|
|
//TODO: do something meaningful
|
|
|
|
wgpu_terminate(infra.client);
|
|
|
|
return 0;
|
|
}
|