On Mon Jan 30 11:50:42 2023 +0000, Nikolay Sivov wrote:
As I understand, the only reason we test by execution is because matching compiler output exactly is not really required, or needs a lot of work and time, that's better spent elsewhere. For constants that applies to all other tests as well.
Those `.shader_test` files are meant to test both the compiler and the executor. So it's useful to have something that tests what happen to `sqrt(-1)`, in order to ensure that to conversion to SPIR-V and then the execution through a Vulkan driver does what the shader expects.