WebGPU
WebGPU is a working project to become in a future web standard API for accelerated graphics and compute, aiming to provide modern 3D graphics and computation capabilities on Web platform.
It is developed by the W3C for the Web community group with engineers from Apple, Mozilla, Microsoft, Google and others. This technology run on top of the latest graphics APIs like DirectX 12, Vulkan and Metal.
Chrome, Edge and Firefox already support it as experimental feature so you need to move to beta channel and active it. Evergine uses WebGPU on Web platforms when it is available otherwise use WebGL which is the most supported graphics technology today.
To check the implementation status of this technology visit webgpu.io.
Supported WebGPU devices
- Chrome, Edge, Safari and firefox browsers on Desktop, tablet and mobile.
Checking WebGPU version
Browser | Check command |
---|---|
Chrome | The WebGPU flag must be enabled by writing this in your browser: chrome://flags/#enable-unsafe-webgpu |
Edge | The WebGPUflag must be enabled by writing this in your browser: edge://flags/#enable-unsafe-webgpu |
Create a Graphics Context
To create a graphics context based on WebGPU just write:
GraphicsContext graphicsContext = new Evergine.WebGPU.WGPUGraphicsContext();
graphicsContext.CreateDevice();
Build & Run on WebGPU
The project template will be available soon.