glsl-optimizer icon indicating copy to clipboard operation
glsl-optimizer copied to clipboard

Metal: Vector compare will now translate correctly.

Open cbirkhold opened this issue 9 years ago • 0 comments

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.

cbirkhold avatar Apr 28 '15 16:04 cbirkhold