createSwapChain method
Implementation
Future createSwapChain(int width, int height) async {
_module.ccall(
"create_swap_chain",
"void",
["void*".toJS, "void*".toJS, "uint32_t".toJS, "uint32_t".toJS].toJS,
[_viewer!, null, width.toJS, height.toJS].toJS,
null);
}