chromium/third_party/angle/src/tests/compiler_tests/VariablePacker_test.cpp

//
// Copyright 2002 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.
//

#include "gtest/gtest.h"

#include "angle_gl.h"
#include "common/angleutils.h"
#include "common/utilities.h"
#include "compiler/translator/VariablePacker.h"

namespace
{

static sh::GLenum types[] =;

static sh::GLenum nonSqMatTypes[] =;

// Creates either a single variable or an array variable depending on numVars.
sh::ShaderVariable CreateShaderVariable(sh::GLenum type, int numVars)
{}

}  // anonymous namespace

TEST(VariablePacking, Pack)
{}

TEST(VariablePacking, PackSizes)
{}

// Check special assumptions about packing non-square mats
TEST(VariablePacking, NonSquareMats)
{}

// Scalar type variables can be packed sharing rows with other variables.
TEST(VariablePacking, ReuseRows)
{}

// Check the packer supports and flattens structures.
TEST(VariablePacking, Struct)
{}