Browse Source

Trade: test the early return in hasOcclusionRoughnessMetallicTexture().

Interestingly certain CI jobs mark it as covered and others not.
pull/482/merge
Vladimír Vondruš 2 weeks ago
parent
commit
721e10ea0d
  1. 9
      src/Magnum/Trade/Test/PbrMetallicRoughnessMaterialDataTest.cpp

9
src/Magnum/Trade/Test/PbrMetallicRoughnessMaterialDataTest.cpp

@ -522,7 +522,14 @@ void PbrMetallicRoughnessMaterialDataTest::texturedImplicitPackedOcclusionRoughn
}};
CORRADE_VERIFY(!data.hasOcclusionRoughnessMetallicTexture());
/* One texture missing */
/* Roughness / metallic texture missing */
} {
PbrMetallicRoughnessMaterialData data{{}, {
{MaterialAttribute::OcclusionTexture, 2u},
}};
CORRADE_VERIFY(!data.hasOcclusionRoughnessMetallicTexture());
/* Occlusion texture missing */
} {
PbrMetallicRoughnessMaterialData data{{}, {
{MaterialAttribute::NoneRoughnessMetallicTexture, 2u},

Loading…
Cancel
Save