Browse Source

MeshTools: test combineIndexedAttributes() with an offset-only attrib.

Just to be sure. It doesn't cause any issues.
pull/623/head
Vladimír Vondruš 3 years ago
parent
commit
c43f6bf043
  1. 4
      src/Magnum/MeshTools/Test/CombineTest.cpp

4
src/Magnum/MeshTools/Test/CombineTest.cpp

@ -112,7 +112,9 @@ void CombineTest::combineIndexedAttributes() {
Trade::MeshData c{MeshPrimitive::LineLoop,
{}, indicesC, Trade::MeshIndexData{indicesC},
{}, dataC, {Trade::MeshAttributeData{
Trade::meshAttributeCustom(22), Containers::arrayView(dataC)}}};
/* Offset-only to verify these aren't causing any issues
internally */
Trade::meshAttributeCustom(22), VertexFormat::Float, 0, 8, sizeof(Float)}}};
Trade::MeshData result = MeshTools::combineIndexedAttributes({a, b, c});
CORRADE_COMPARE(result.primitive(), MeshPrimitive::LineLoop);

Loading…
Cancel
Save