SPV: Handle GLSL bool loads from a uniform buffer as a conversion from int -> bool.
authorJohn Kessenich <cepheus@frii.com>
Tue, 9 Feb 2016 04:38:15 +0000 (21:38 -0700)
committerJohn Kessenich <cepheus@frii.com>
Tue, 9 Feb 2016 04:41:30 +0000 (21:41 -0700)
commit103bef9d74d768f0690ed53f52681baead384d1e
tree649c8f0a93ffb3c29b5731cbdc825bae1d01a19c
parent10110596a34c6e80ca8ace47dcfb9f1af20f36ae
SPV: Handle GLSL bool loads from a uniform buffer as a conversion from int -> bool.

SPIR-V bool is abstract; it has no bit pattern for storage with transparent memory.
OpenGL's convention is a bool in a uniform buffer is 32-bit int with non-0 being 'true'.
SPIRV/GlslangToSpv.cpp
SPIRV/SpvBuilder.cpp
SPIRV/SpvBuilder.h
Test/baseResults/spv.aggOps.frag.out