MCPcopy Create free account
hub / github.com/RenderKit/oidn / imageSizeTest

Function imageSizeTest

apps/oidnTest.cpp:1237–1255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1235// -------------------------------------------------------------------------------------------------
1236
1237void imageSizeTest(DeviceRef& device, int W, int H, bool execute = true)
1238{
1239 FilterRef filter = device.newFilter("RT");
1240 REQUIRE(bool(filter));
1241
1242 auto color = makeConstImage(device, W, H);
1243 auto output = makeImage(device, W, H);
1244 setFilterImage(filter, "color", color);
1245 setFilterImage(filter, "output", output);
1246
1247 filter.commit();
1248 REQUIRE(device.getError() == Error::None);
1249
1250 if (execute)
1251 {
1252 filter.execute();
1253 REQUIRE(device.getError() == Error::None);
1254 }
1255}
1256
1257TEST_CASE("image size", "[size]")
1258{

Callers 1

oidnTest.cppFile · 0.85

Calls 7

makeConstImageFunction · 0.85
makeImageFunction · 0.85
setFilterImageFunction · 0.85
newFilterMethod · 0.45
commitMethod · 0.45
getErrorMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected