wgpun_AdapterRequestDevice function

  1. @Native<Uint64 Function(Uint64, Pointer<WGPUDeviceDescriptor>)>(ffi.Uint64, ffi.Pointer<WGPUDeviceDescriptor>)>()
int wgpun_AdapterRequestDevice(
  1. int adapter,
  2. Pointer<WGPUDeviceDescriptor> descriptor
)

Request a device from an adapter. Returns device handle, or 0 on failure.

Implementation

@ffi.Native<
  ffi.Uint64 Function(ffi.Uint64, ffi.Pointer<WGPUDeviceDescriptor>)
>()
external int wgpun_AdapterRequestDevice(
  int adapter,
  ffi.Pointer<WGPUDeviceDescriptor> descriptor,
);