#include <vector>
#include "test_utils/ANGLETest.h"
#include "test_utils/gl_raii.h"
usingnamespaceangle;
namespace
{
constexpr double kTriangleData[] = …;
constexpr size_t kNumVertices = …;
class VertexData
{ … };
class Container
{ … };
class Memory : public Container
{ … };
class Buffer : public Container
{ … };
struct Attrib
{ … };
template <class T>
void Store(double value, void *dest)
{ … }
template <class CType, GLenum GLType, bool Normalized, bool PureInteger = false>
class Format
{ … };
TestCase;
void PrepareTestCase(const TestCase &tc)
{ … }
class AttributeLayoutTest : public ANGLETest<>
{ … };
const GLushort AttributeLayoutTest::mIndices[kNumVertices] = …;
void AttributeLayoutTest::GetTestCases(void)
{ … }
class AttributeLayoutNonIndexed : public AttributeLayoutTest
{ … };
class AttributeLayoutMemoryIndexed : public AttributeLayoutTest
{ … };
class AttributeLayoutBufferIndexed : public AttributeLayoutTest
{ … };
TEST_P(AttributeLayoutNonIndexed, Test)
{ … }
TEST_P(AttributeLayoutMemoryIndexed, Test)
{ … }
TEST_P(AttributeLayoutBufferIndexed, Test)
{ … }
ANGLE_INSTANTIATE_TEST_ES2_AND_ES3_AND(…);
ANGLE_INSTANTIATE_TEST_ES2_AND_ES3_AND(…);
ANGLE_INSTANTIATE_TEST_ES2_AND_ES3_AND(…);
#define STRINGIFY2(X) …
#define STRINGIFY(X) …
#define VS_SHADER(ColorDataType) …
#define PS_SHADER(ColorDataType) …
constexpr double kVertexData[] = …;
template <class ResType>
ResType GetRefValue(const void *data, GLenum glType)
{ … }
constexpr size_t kIndexCount = …;
constexpr int kRboSize = …;
GLColor ConvertFloatToUnorm8(const GLColor32F &color32f)
{ … }
void BindAttribLocation(GLuint program)
{ … }
class AttributeDataTypeMismatchTest : public ANGLETest<>
{ … };
const GLushort AttributeDataTypeMismatchTest::mIndices[kIndexCount] = …;
TEST_P(AttributeDataTypeMismatchTest, Test)
{ … }
ANGLE_INSTANTIATE_TEST_ES3(…);
}