Makes a surface for a Window_Creation window. It's native only; in the browser, pass the canvas to
wgpuInstanceCreateSurface. Returns null, and logs why, when the window is invalid.
#import "Window_Creation";
instance := wgpuCreateInstance(null);
window := create_window(800, 600, "gpu");
surface := webgpu_create_surface(instance, window);This one is only checked to compile, not run.
webgpu_create_surface :: (
instance: WGPUInstance,
window: Window_Type
) -> WGPUSurface
Parameters
- instance: WGPUInstance
- window: Window_Type