Commit d26fb99e by shrekshao Committed by Commit Bot

Add DrawBaseVertexVariants Tests

This tests different DrawElements*BaseVertex draw calls from different extensions including OES_draw_elements_base_vertex, EXT_draw_elements_base_vertex, and ANGLE_base_vertex_base_instance, with various combinations of base vertex, base index values. Bug: angleproject:4536 Change-Id: I3cd256522684c6040199d7704aac8575237dbd96 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2146292Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarShrek Shao <shrekshao@google.com> Commit-Queue: Shrek Shao <shrekshao@google.com>
parent 1b30886d
...@@ -1644,6 +1644,8 @@ void GenerateCaps(ID3D11Device *device, ...@@ -1644,6 +1644,8 @@ void GenerateCaps(ID3D11Device *device,
extensions->maxDualSourceDrawBuffers = 1; extensions->maxDualSourceDrawBuffers = 1;
extensions->texture3DOES = true; extensions->texture3DOES = true;
extensions->baseVertexBaseInstance = true; extensions->baseVertexBaseInstance = true;
extensions->drawElementsBaseVertexOES = true;
extensions->drawElementsBaseVertexEXT = true;
if (!strstr(description, "Adreno")) if (!strstr(description, "Adreno"))
{ {
extensions->multisampledRenderToTexture = true; extensions->multisampledRenderToTexture = true;
......
...@@ -52,6 +52,7 @@ angle_end2end_tests_sources = [ ...@@ -52,6 +52,7 @@ angle_end2end_tests_sources = [
"gl_tests/DifferentStencilMasksTest.cpp", "gl_tests/DifferentStencilMasksTest.cpp",
"gl_tests/DiscardFramebufferEXTTest.cpp", "gl_tests/DiscardFramebufferEXTTest.cpp",
"gl_tests/DrawBaseVertexBaseInstanceTest.cpp", "gl_tests/DrawBaseVertexBaseInstanceTest.cpp",
"gl_tests/DrawBaseVertexVariantsTest.cpp",
"gl_tests/DrawBuffersTest.cpp", "gl_tests/DrawBuffersTest.cpp",
"gl_tests/DrawElementsTest.cpp", "gl_tests/DrawElementsTest.cpp",
"gl_tests/ETCTextureTest.cpp", "gl_tests/ETCTextureTest.cpp",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment