blob: 14bbbe13e2a29ab7ae926a510a2917aeeb110938 [file] [log] [blame]
// Copyright (c) 2002-2014 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Scalarize vector and matrix constructor args, so that vectors built from components don't have
// matrix arguments, and matrices built from components don't have vector arguments. This avoids
// driver bugs around vector and matrix constructors.
#include "GLSLANG/ShaderLang.h"
namespace sh
class TIntermBlock;
void ScalarizeVecAndMatConstructorArgs(TIntermBlock *root,
sh::GLenum shaderType,
bool fragmentPrecisionHigh,
unsigned int *temporaryIndex);
} // namespace sh