Mais cela ne fonctionne pas pour tous les environnements :
Firefox
Work is in progress in Nightly, enabled by "dom.webgpu.enabled" pref. Presentation to the CanvasContext is only available for WebRender, which is gated by "gfx.webrender.all" pref. It's been shown to work on Windows 7/10, macOS, Linux (with Vulkan support), and even Android (also with Vulkan).
A WebGPU implementation translates the workloads issued by the user into API commands specific to the target platform. Native APIs specify the valid usage for the commands (for example, see vkCreateDescriptorSetLayout) and generally don’t guarantee any outcome if the valid usage rules are not followed. This is called "undefined behavior", and it can be exploited by an attacker to access memory they don’t own, or force the driver to execute arbitrary code.
# Test
Posté par dark_moule . Évalué à 1.
Pour tester : https://austineng.github.io/webgpu-samples/
Mais cela ne fonctionne pas pour tous les environnements :
# What could go wrong?
Posté par devnewton 🍺 (site web personnel) . Évalué à 3.
A WebGPU implementation translates the workloads issued by the user into API commands specific to the target platform. Native APIs specify the valid usage for the commands (for example, see vkCreateDescriptorSetLayout) and generally don’t guarantee any outcome if the valid usage rules are not followed. This is called "undefined behavior", and it can be exploited by an attacker to access memory they don’t own, or force the driver to execute arbitrary code.
https://gpuweb.github.io/gpuweb/
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
# Point of WebGPU on native - kvark's dev blog
Posté par antistress (site web personnel) . Évalué à 2.
[^] # Re: Point of WebGPU on native - kvark's dev blog
Posté par antistress (site web personnel) . Évalué à 2.
et plein de vidéos et diapos de présentation ici : https://kvark.github.io/about/
Suivre le flux des commentaires
Note : les commentaires appartiennent à celles et ceux qui les ont postés. Nous n’en sommes pas responsables.