Results 545 comments of David Neto

The rule requiring a *struct* to be aligned to 16bytes in a uniform buffer trace back to the OpenGL std140 rules, and the Vulkan layout rules for uniform buffers (assuming...

There is a Vulkan extension, [VK_KHR_uniform_buffer_standard_layout](https://docs.vulkan.org/guide/latest/shader_memory_layout.html#VK_KHR_uniform_buffer_standard_layout) which relaxes the rules and allows uniform buffers to use the same rules as storage buffers. That extension was promoted to core in Vulkan...

My personal views: - The most important thing is that WGSL is well specified - It's also important that the WGSL spec is clear to human readers. - Baking rules...

More of my personal views: - I care more about the usability of WGSL than how much work it takes to update downstream tools. Thinking out loud (not a proposal)....

The relevant Vulkan feature bit is shaderSignedZeroInfNanPreserveFloat32 which was introduced by VK_KHR_shader_float_controls It's not universally supported. You can explore at https://vulkan.gpuinfo.org/listpropertiesextensions.php

> Can you use a different sentinel value? Using something in the finite range of f32 is the portable way to do it. The spec now has tables of extreme...

Ah, reopening as this is a documentation / developer advice issue.

Note: Currently `wgsl` is a reserved word, so this is backward compatible.

Close in favour of the broader work of #4451

A year ago I was in a minimalist mood. Now it's supported by the additional feedback. This was briefly discussed in today's WGSL meeting. [notes](https://docs.google.com/document/d/1w8vmiIJ9QOpPT2Kf58BQ93HHGfH44TszPLA6XbrcQ50/edit). It was supported in general....