SPV: Don't support noise*() when generating SPV.

This commit is contained in:
John Kessenich 2017-11-03 03:39:48 -06:00
parent af52799c2d
commit 2edde6665d
6 changed files with 32 additions and 8 deletions

View file

@ -1384,7 +1384,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
//
// Noise functions.
//
if (profile != EEsProfile) {
if (spvVersion.spv == 0 && profile != EEsProfile) {
commonBuiltins.append(
"float noise1(float x);"
"float noise1(vec2 x);"