glsl-optimizer
glsl-optimizer copied to clipboard
Metal: Vector compare will now translate correctly.
This change will wrap vector compares, specifically == and !=, with the required all()/any() in the Metal translation. Comparing vectors results in a boolean vector and which GLSL will implicitly reduce to a scalar boolean with all() and any() respectively, but with Metal this must be done explicitly.