You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Standard WGSL supports something called the requires global directive, which allows shaders to declare that certain extensions either need to be supported by the WebGPU host, or shader compilation should fail. It's used like this:
requiresreadonly_and_readwrite_storage_textures; // single extensionrequirespacked_4x8_integer_dot_product, unrestricted_pointer_parameters; // multiple extensions, comma-separated
Standard WGSL supports something called the
requires
global directive, which allows shaders to declare that certain extensions either need to be supported by the WebGPU host, or shader compilation should fail. It's used like this:WGSL standard link: https://www.w3.org/TR/WGSL/#requires-directive
The text was updated successfully, but these errors were encountered: