Jamie Madill | fa05f60 | 2015-05-07 13:47:11 -0400 | [diff] [blame] | 1 | // |
| 2 | // Copyright 2015 The ANGLE Project Authors. All rights reserved. |
| 3 | // Use of this source code is governed by a BSD-style license that can be |
| 4 | // found in the LICENSE file. |
| 5 | // |
| 6 | |
Corentin Wallez | d3970de | 2015-05-14 11:07:48 -0400 | [diff] [blame] | 7 | #include "test_utils/ANGLETest.h" |
Jamie Madill | fa05f60 | 2015-05-07 13:47:11 -0400 | [diff] [blame] | 8 | |
Jamie Madill | fa05f60 | 2015-05-07 13:47:11 -0400 | [diff] [blame] | 9 | using namespace angle; |
| 10 | |
| 11 | template <typename IndexType, GLenum IndexTypeName> |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 12 | class IndexedPointsTest : public ANGLETest |
| 13 | { |
Jamie Madill | fa05f60 | 2015-05-07 13:47:11 -0400 | [diff] [blame] | 14 | protected: |
| 15 | IndexedPointsTest() |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 16 | { |
| 17 | setWindowWidth(128); |
| 18 | setWindowHeight(128); |
| 19 | setConfigRedBits(8); |
| 20 | setConfigGreenBits(8); |
| 21 | setConfigBlueBits(8); |
| 22 | setConfigAlphaBits(8); |
| 23 | setConfigDepthBits(24); |
| 24 | } |
| 25 | |
| 26 | float getIndexPositionX(size_t idx) |
| 27 | { |
| 28 | return (idx == 0 || idx == 3) ? -0.5f : 0.5f; |
| 29 | } |
| 30 | |
| 31 | float getIndexPositionY(size_t idx) |
| 32 | { |
| 33 | return (idx == 2 || idx == 3) ? -0.5f : 0.5f; |
| 34 | } |
| 35 | |
| 36 | virtual void SetUp() |
| 37 | { |
| 38 | ANGLETest::SetUp(); |
| 39 | |
| 40 | const std::string vertexShaderSource = SHADER_SOURCE |
| 41 | ( |
| 42 | precision highp float; |
| 43 | attribute vec2 position; |
| 44 | |
| 45 | void main() |
| 46 | { |
| 47 | gl_PointSize = 5.0; |
| 48 | gl_Position = vec4(position, 0.0, 1.0); |
| 49 | } |
| 50 | ); |
| 51 | |
| 52 | const std::string fragmentShaderSource = SHADER_SOURCE |
| 53 | ( |
| 54 | precision highp float; |
| 55 | |
| 56 | void main() |
| 57 | { |
| 58 | gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0); |
| 59 | } |
| 60 | ); |
| 61 | |
Jamie Madill | 5599c8f | 2014-08-26 13:16:39 -0400 | [diff] [blame] | 62 | mProgram = CompileProgram(vertexShaderSource, fragmentShaderSource); |
Cooper Partin | 558f2b5 | 2015-06-02 09:34:11 -0700 | [diff] [blame] | 63 | ASSERT_NE(0u, mProgram); |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 64 | |
Cooper Partin | 558f2b5 | 2015-06-02 09:34:11 -0700 | [diff] [blame] | 65 | const std::string vertexShaderSource2 = SHADER_SOURCE |
| 66 | ( |
| 67 | precision highp float; |
| 68 | attribute vec2 position; |
| 69 | attribute vec4 color; |
| 70 | varying vec4 vcolor; |
| 71 | |
| 72 | void main() |
| 73 | { |
| 74 | gl_PointSize = 5.0; |
| 75 | gl_Position = vec4(position, 0.0, 1.0); |
| 76 | vcolor = color; |
| 77 | } |
| 78 | ); |
| 79 | |
| 80 | const std::string fragmentShaderSource2 = SHADER_SOURCE |
| 81 | ( |
| 82 | precision highp float; |
| 83 | varying vec4 vcolor; |
| 84 | void main() |
| 85 | { |
| 86 | gl_FragColor = vec4(vcolor.xyz, 1.0); |
| 87 | } |
| 88 | ); |
| 89 | |
| 90 | mVertexWithColorBufferProgram = CompileProgram(vertexShaderSource2, fragmentShaderSource2); |
| 91 | ASSERT_NE(0u, mVertexWithColorBufferProgram); |
| 92 | |
| 93 | // Construct a vertex buffer of position values and color values |
| 94 | // contained in a single structure |
| 95 | const float verticesWithColor[] = |
| 96 | { |
| 97 | getIndexPositionX(0), getIndexPositionY(0), 0.0f, 1.0f, 0.0f, |
| 98 | getIndexPositionX(2), getIndexPositionY(2), 0.0f, 1.0f, 0.0f, |
| 99 | getIndexPositionX(1), getIndexPositionY(1), 0.0f, 1.0f, 0.0f, |
| 100 | getIndexPositionX(3), getIndexPositionY(3), 0.0f, 1.0f, 0.0f, |
| 101 | }; |
| 102 | |
| 103 | glGenBuffers(1, &mVertexWithColorBuffer); |
| 104 | glBindBuffer(GL_ARRAY_BUFFER, mVertexWithColorBuffer); |
| 105 | glBufferData(GL_ARRAY_BUFFER, sizeof(verticesWithColor), &verticesWithColor[0], GL_STATIC_DRAW); |
| 106 | |
| 107 | // Construct a vertex buffer of position values only |
Corentin Wallez | 91c2fad | 2015-05-15 10:34:14 -0400 | [diff] [blame] | 108 | const GLfloat vertices[] = |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 109 | { |
| 110 | getIndexPositionX(0), getIndexPositionY(0), |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 111 | getIndexPositionX(2), getIndexPositionY(2), |
Cooper Partin | 558f2b5 | 2015-06-02 09:34:11 -0700 | [diff] [blame] | 112 | getIndexPositionX(1), getIndexPositionY(1), |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 113 | getIndexPositionX(3), getIndexPositionY(3), |
| 114 | }; |
| 115 | glGenBuffers(1, &mVertexBuffer); |
| 116 | glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer); |
Corentin Wallez | 91c2fad | 2015-05-15 10:34:14 -0400 | [diff] [blame] | 117 | glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), &vertices[0], GL_STATIC_DRAW); |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 118 | |
Cooper Partin | 558f2b5 | 2015-06-02 09:34:11 -0700 | [diff] [blame] | 119 | // The indices buffer is shared between both variations of tests |
| 120 | const IndexType indices[] = { 0, 2, 1, 3 }; |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 121 | glGenBuffers(1, &mIndexBuffer); |
| 122 | glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); |
Corentin Wallez | 91c2fad | 2015-05-15 10:34:14 -0400 | [diff] [blame] | 123 | glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(indices), &indices[0], GL_STATIC_DRAW); |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 124 | } |
| 125 | |
| 126 | virtual void TearDown() |
| 127 | { |
Cooper Partin | 558f2b5 | 2015-06-02 09:34:11 -0700 | [diff] [blame] | 128 | glDeleteBuffers(1, &mVertexBuffer); |
| 129 | glDeleteBuffers(1, &mIndexBuffer); |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 130 | glDeleteProgram(mProgram); |
| 131 | |
Cooper Partin | 558f2b5 | 2015-06-02 09:34:11 -0700 | [diff] [blame] | 132 | glDeleteBuffers(1, &mVertexWithColorBuffer); |
| 133 | glDeleteProgram(mVertexWithColorBufferProgram); |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 134 | ANGLETest::TearDown(); |
| 135 | } |
| 136 | |
Cooper Partin | 558f2b5 | 2015-06-02 09:34:11 -0700 | [diff] [blame] | 137 | void runTest(GLuint firstIndex, bool useVertexBufferWithColor = false) |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 138 | { |
| 139 | glClearColor(0.0f, 0.0f, 0.0f, 1.0f); |
| 140 | glClear(GL_COLOR_BUFFER_BIT); |
| 141 | |
| 142 | GLint viewportSize[4]; |
| 143 | glGetIntegerv(GL_VIEWPORT, viewportSize); |
| 144 | |
Cooper Partin | 558f2b5 | 2015-06-02 09:34:11 -0700 | [diff] [blame] | 145 | // Choose appropriate program to apply for the test |
| 146 | GLuint program = useVertexBufferWithColor ? mVertexWithColorBufferProgram : mProgram; |
| 147 | |
| 148 | if (useVertexBufferWithColor) |
| 149 | { |
| 150 | glBindBuffer(GL_ARRAY_BUFFER, mVertexWithColorBuffer); |
| 151 | GLint vertexLocation = glGetAttribLocation(program, "position"); |
| 152 | glVertexAttribPointer(vertexLocation, 2, GL_FLOAT, GL_FALSE, VertexWithColorSize, 0); |
| 153 | glEnableVertexAttribArray(vertexLocation); |
| 154 | |
| 155 | GLint vertexColorLocation = glGetAttribLocation(program, "color"); |
| 156 | glVertexAttribPointer(vertexColorLocation, 3, GL_FLOAT, GL_FALSE, VertexWithColorSize, (GLvoid*)((sizeof(float) * 2))); |
| 157 | glEnableVertexAttribArray(vertexColorLocation); |
| 158 | } |
| 159 | else |
| 160 | { |
| 161 | glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer); |
| 162 | GLint vertexLocation = glGetAttribLocation(program, "position"); |
| 163 | glVertexAttribPointer(vertexLocation, 2, GL_FLOAT, GL_FALSE, 0, 0); |
| 164 | glEnableVertexAttribArray(vertexLocation); |
| 165 | } |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 166 | |
| 167 | glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); |
Cooper Partin | 558f2b5 | 2015-06-02 09:34:11 -0700 | [diff] [blame] | 168 | glUseProgram(program); |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 169 | |
| 170 | glDrawElements(GL_POINTS, mPointCount - firstIndex, IndexTypeName, reinterpret_cast<void*>(firstIndex * sizeof(IndexType))); |
| 171 | |
| 172 | for (size_t i = 0; i < mPointCount; i++) |
| 173 | { |
Minmin Gong | 794e000 | 2015-04-07 18:31:54 -0700 | [diff] [blame] | 174 | GLuint x = static_cast<GLuint>(viewportSize[0] + (getIndexPositionX(i) * 0.5f + 0.5f) * (viewportSize[2] - viewportSize[0])); |
| 175 | GLuint y = static_cast<GLuint>(viewportSize[1] + (getIndexPositionY(i) * 0.5f + 0.5f) * (viewportSize[3] - viewportSize[1])); |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 176 | |
| 177 | if (i < firstIndex) |
| 178 | { |
| 179 | EXPECT_PIXEL_EQ(x, y, 0, 0, 0, 255); |
| 180 | } |
| 181 | else |
| 182 | { |
Cooper Partin | 558f2b5 | 2015-06-02 09:34:11 -0700 | [diff] [blame] | 183 | if (useVertexBufferWithColor) |
| 184 | { |
| 185 | // Pixel data is assumed to be GREEN |
| 186 | EXPECT_PIXEL_EQ(x, y, 0, 255, 0, 255); |
| 187 | } |
| 188 | else |
| 189 | { |
| 190 | // Pixel data is assumed to be RED |
| 191 | EXPECT_PIXEL_EQ(x, y, 255, 0, 0, 255); |
| 192 | } |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 193 | } |
| 194 | } |
Cooper Partin | 558f2b5 | 2015-06-02 09:34:11 -0700 | [diff] [blame] | 195 | swapBuffers(); |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 196 | } |
| 197 | |
| 198 | GLuint mProgram; |
| 199 | GLuint mVertexBuffer; |
| 200 | GLuint mIndexBuffer; |
Cooper Partin | 558f2b5 | 2015-06-02 09:34:11 -0700 | [diff] [blame] | 201 | |
| 202 | GLuint mVertexWithColorBufferProgram; |
| 203 | GLuint mVertexWithColorBuffer; |
| 204 | |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 205 | static const GLuint mPointCount = 4; |
Cooper Partin | 558f2b5 | 2015-06-02 09:34:11 -0700 | [diff] [blame] | 206 | |
| 207 | private: |
| 208 | const size_t VertexWithColorSize = sizeof(float) * 5; |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 209 | }; |
| 210 | |
Jamie Madill | fa05f60 | 2015-05-07 13:47:11 -0400 | [diff] [blame] | 211 | typedef IndexedPointsTest<GLubyte, GL_UNSIGNED_BYTE> IndexedPointsTestUByte; |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 212 | |
Jamie Madill | fa05f60 | 2015-05-07 13:47:11 -0400 | [diff] [blame] | 213 | TEST_P(IndexedPointsTestUByte, UnsignedByteOffset0) |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 214 | { |
| 215 | runTest(0); |
| 216 | } |
| 217 | |
Jamie Madill | fa05f60 | 2015-05-07 13:47:11 -0400 | [diff] [blame] | 218 | TEST_P(IndexedPointsTestUByte, UnsignedByteOffset1) |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 219 | { |
| 220 | runTest(1); |
| 221 | } |
| 222 | |
Jamie Madill | fa05f60 | 2015-05-07 13:47:11 -0400 | [diff] [blame] | 223 | TEST_P(IndexedPointsTestUByte, UnsignedByteOffset2) |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 224 | { |
| 225 | runTest(2); |
| 226 | } |
| 227 | |
Jamie Madill | fa05f60 | 2015-05-07 13:47:11 -0400 | [diff] [blame] | 228 | TEST_P(IndexedPointsTestUByte, UnsignedByteOffset3) |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 229 | { |
| 230 | runTest(3); |
| 231 | } |
| 232 | |
Cooper Partin | 558f2b5 | 2015-06-02 09:34:11 -0700 | [diff] [blame] | 233 | TEST_P(IndexedPointsTestUByte, VertexWithColorUnsignedByteOffset0) |
| 234 | { |
| 235 | runTest(0, true); |
| 236 | } |
| 237 | |
| 238 | TEST_P(IndexedPointsTestUByte, VertexWithColorUnsignedByteOffset1) |
| 239 | { |
| 240 | runTest(1, true); |
| 241 | } |
| 242 | |
| 243 | TEST_P(IndexedPointsTestUByte, VertexWithColorUnsignedByteOffset2) |
| 244 | { |
| 245 | runTest(2, true); |
| 246 | } |
| 247 | |
| 248 | TEST_P(IndexedPointsTestUByte, VertexWithColorUnsignedByteOffset3) |
| 249 | { |
| 250 | runTest(3, true); |
| 251 | } |
| 252 | |
Jamie Madill | fa05f60 | 2015-05-07 13:47:11 -0400 | [diff] [blame] | 253 | typedef IndexedPointsTest<GLushort, GL_UNSIGNED_SHORT> IndexedPointsTestUShort; |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 254 | |
Jamie Madill | fa05f60 | 2015-05-07 13:47:11 -0400 | [diff] [blame] | 255 | TEST_P(IndexedPointsTestUShort, UnsignedShortOffset0) |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 256 | { |
| 257 | runTest(0); |
| 258 | } |
| 259 | |
Jamie Madill | fa05f60 | 2015-05-07 13:47:11 -0400 | [diff] [blame] | 260 | TEST_P(IndexedPointsTestUShort, UnsignedShortOffset1) |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 261 | { |
| 262 | runTest(1); |
| 263 | } |
| 264 | |
Jamie Madill | fa05f60 | 2015-05-07 13:47:11 -0400 | [diff] [blame] | 265 | TEST_P(IndexedPointsTestUShort, UnsignedShortOffset2) |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 266 | { |
| 267 | runTest(2); |
| 268 | } |
| 269 | |
Jamie Madill | fa05f60 | 2015-05-07 13:47:11 -0400 | [diff] [blame] | 270 | TEST_P(IndexedPointsTestUShort, UnsignedShortOffset3) |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 271 | { |
| 272 | runTest(3); |
| 273 | } |
| 274 | |
Cooper Partin | 558f2b5 | 2015-06-02 09:34:11 -0700 | [diff] [blame] | 275 | TEST_P(IndexedPointsTestUShort, VertexWithColorUnsignedShortOffset0) |
| 276 | { |
| 277 | runTest(0, true); |
| 278 | } |
| 279 | |
| 280 | TEST_P(IndexedPointsTestUShort, VertexWithColorUnsignedShortOffset1) |
| 281 | { |
| 282 | runTest(1, true); |
| 283 | } |
| 284 | |
| 285 | TEST_P(IndexedPointsTestUShort, VertexWithColorUnsignedShortOffset2) |
| 286 | { |
| 287 | runTest(2, true); |
| 288 | } |
| 289 | |
| 290 | TEST_P(IndexedPointsTestUShort, VertexWithColorUnsignedShortOffset3) |
| 291 | { |
| 292 | runTest(3, true); |
| 293 | } |
| 294 | |
| 295 | TEST_P(IndexedPointsTestUShort, VertexWithColorUnsignedShortOffsetChangingIndices) |
| 296 | { |
| 297 | runTest(3, true); |
| 298 | runTest(1, true); |
| 299 | runTest(0, true); |
| 300 | runTest(2, true); |
| 301 | } |
| 302 | |
Jamie Madill | fa05f60 | 2015-05-07 13:47:11 -0400 | [diff] [blame] | 303 | typedef IndexedPointsTest<GLuint, GL_UNSIGNED_INT> IndexedPointsTestUInt; |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 304 | |
Jamie Madill | fa05f60 | 2015-05-07 13:47:11 -0400 | [diff] [blame] | 305 | TEST_P(IndexedPointsTestUInt, UnsignedIntOffset0) |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 306 | { |
| 307 | if (getClientVersion() < 3 && !extensionEnabled("GL_OES_element_index_uint")) |
| 308 | { |
| 309 | return; |
| 310 | } |
| 311 | |
| 312 | runTest(0); |
| 313 | } |
| 314 | |
Jamie Madill | fa05f60 | 2015-05-07 13:47:11 -0400 | [diff] [blame] | 315 | TEST_P(IndexedPointsTestUInt, UnsignedIntOffset1) |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 316 | { |
| 317 | if (getClientVersion() < 3 && !extensionEnabled("GL_OES_element_index_uint")) |
| 318 | { |
| 319 | return; |
| 320 | } |
| 321 | |
| 322 | runTest(1); |
| 323 | } |
| 324 | |
Jamie Madill | fa05f60 | 2015-05-07 13:47:11 -0400 | [diff] [blame] | 325 | TEST_P(IndexedPointsTestUInt, UnsignedIntOffset2) |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 326 | { |
| 327 | if (getClientVersion() < 3 && !extensionEnabled("GL_OES_element_index_uint")) |
| 328 | { |
| 329 | return; |
| 330 | } |
| 331 | |
| 332 | runTest(2); |
| 333 | } |
| 334 | |
Jamie Madill | fa05f60 | 2015-05-07 13:47:11 -0400 | [diff] [blame] | 335 | TEST_P(IndexedPointsTestUInt, UnsignedIntOffset3) |
Geoff Lang | f8c2f5c | 2013-12-05 13:52:33 -0500 | [diff] [blame] | 336 | { |
| 337 | if (getClientVersion() < 3 && !extensionEnabled("GL_OES_element_index_uint")) |
| 338 | { |
| 339 | return; |
| 340 | } |
| 341 | |
| 342 | runTest(3); |
| 343 | } |
Jamie Madill | fa05f60 | 2015-05-07 13:47:11 -0400 | [diff] [blame] | 344 | |
Cooper Partin | 558f2b5 | 2015-06-02 09:34:11 -0700 | [diff] [blame] | 345 | TEST_P(IndexedPointsTestUInt, VertexWithColorUnsignedIntOffset0) |
| 346 | { |
| 347 | if (getClientVersion() < 3 && !extensionEnabled("GL_OES_element_index_uint")) |
| 348 | { |
| 349 | return; |
| 350 | } |
| 351 | |
| 352 | runTest(0, false); |
| 353 | } |
| 354 | |
| 355 | TEST_P(IndexedPointsTestUInt, VertexWithColorUnsignedIntOffset1) |
| 356 | { |
| 357 | if (getClientVersion() < 3 && !extensionEnabled("GL_OES_element_index_uint")) |
| 358 | { |
| 359 | return; |
| 360 | } |
| 361 | |
| 362 | runTest(1, false); |
| 363 | } |
| 364 | |
| 365 | TEST_P(IndexedPointsTestUInt, VertexWithColorUnsignedIntOffset2) |
| 366 | { |
| 367 | if (getClientVersion() < 3 && !extensionEnabled("GL_OES_element_index_uint")) |
| 368 | { |
| 369 | return; |
| 370 | } |
| 371 | |
| 372 | runTest(2, false); |
| 373 | } |
| 374 | |
| 375 | TEST_P(IndexedPointsTestUInt, VertexWithColorUnsignedIntOffset3) |
| 376 | { |
| 377 | if (getClientVersion() < 3 && !extensionEnabled("GL_OES_element_index_uint")) |
| 378 | { |
| 379 | return; |
| 380 | } |
| 381 | |
| 382 | runTest(3, false); |
| 383 | } |
| 384 | |
Geoff Lang | c422207 | 2015-05-25 13:19:48 -0400 | [diff] [blame] | 385 | // TODO(geofflang): Figure out why this test fails on Intel OpenGL |
Cooper Partin | 558f2b5 | 2015-06-02 09:34:11 -0700 | [diff] [blame] | 386 | ANGLE_INSTANTIATE_TEST(IndexedPointsTestUByte, ES2_D3D11(), ES2_D3D11_FL9_3()); |
| 387 | ANGLE_INSTANTIATE_TEST(IndexedPointsTestUShort, ES2_D3D11(), ES2_D3D11_FL9_3()); |
| 388 | ANGLE_INSTANTIATE_TEST(IndexedPointsTestUInt, ES2_D3D11(), ES2_D3D11_FL9_3()); |