| 1235 | // ------------------------------------------------------------------------------------------------- |
| 1236 | |
| 1237 | void 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 | |
| 1257 | TEST_CASE("image size", "[size]") |
| 1258 | { |
no test coverage detected