![]() ![]() To see the completed application check out the WebGPU cross-platform app repository. ![]() The same triangle powered by WebGPU in a browser window and a desktop window. Spoiler alert, you’ll get the same red triangle that appears in a browser window and a desktop window with minimal adjustments to your codebase. In this article, you will learn how to write a simple C++ app using WebGPU that runs both on the web and specific platforms. It serves as a platform-agnostic hardware abstraction layer, allowing you to build platform-specific applications by providing a consistent interface across different platforms. This C header file lists all the available procedures and data structures of WebGPU. ![]() However, another significant project has been developed alongside it: the webgpu.h C API. To fulfill the primary goal, a JavaScript API was introduced in Chrome 113. Among them, some realized that WebGPU could be more than a Javascript API but a cross-platform graphics API that could be used by developers across ecosystems other than the web. WebGPU is first and foremost the result of a collaborative effort including major companies such as Apple, Google, Intel, Mozilla, and Microsoft. While it’s true, that story is not complete. For web developers, WebGPU is a web graphics API that provides a unified and fast access to GPUs by exposing modern hardware capabilities and allowing rendering and computation operations on a GPU, similar to Direct3D 12, Metal, and Vulkan. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |