wgpu_create_surface function

  1. @Native<Uint64 Function(Uint64, Uint32, Uint32)>(ffi.Uint64, ffi.Uint32, ffi.Uint32)>()
int wgpu_create_surface(
  1. int device_handle,
  2. int width,
  3. int height
)

Create a render surface with platform texture sharing. Returns surface handle, or 0 on failure (check wgpu_get_last_error).

Implementation

@ffi.Native<ffi.Uint64 Function(ffi.Uint64, ffi.Uint32, ffi.Uint32)>()
external int wgpu_create_surface(
  int device_handle,
  int width,
  int height,
);