Vladimír Vondruš
cdf71fa8bf
DebugTools: new CompareMaterial class.
...
Now that there will be a whole new MaterialTools library, I really need
this helper.
4 years ago
Vladimír Vondruš
58132c0b35
DebugTools: doc++
...
The comparator doesn't wrap the lines, so don't pretend it does. And we
have a way to wrap the lines in the output now, use that.
4 years ago
Vladimír Vondruš
4785bbe9da
DebugTools: remove unnecessary std::tuple usage from CompareImage.
4 years ago
Vladimír Vondruš
72a51c3594
DebugTools: doc++
...
Just make the title consistent for all CompareImage variants.
4 years ago
Vladimír Vondruš
dfc7c3fe2c
DebugTools: no need to set hidden visibility for a nested class.
...
It makes no difference in this case, the State struct is not exported
even without the attribute. OTOH, it would need to have an EXPORT
attribute if it was desired to be exported, for example like done with
nested classes in GL::Framebuffer.
4 years ago
Vladimír Vondruš
a5bc6be094
DebugTools: port CompareImage to Utility::Path, remove all std::strings.
...
Basically mirroring the changes done for Corrade::Compare::*File*,
including storing the filenames as string views to avoid unnecessary
copies (and then paying extra attention to not pass temporaries to them
in its own tests).
4 years ago
Vladimír Vondruš
822fa0d644
Updated copyright year.
4 years ago
Vladimír Vondruš
5719b8fb30
DebugTools: support half-float formats in CompareImage.
5 years ago
Vladimír Vondruš
84dcd52625
DebugTools: doc++
5 years ago
Vladimír Vondruš
aea8722729
Add generic depth/stencil PixelFormat values.
...
The 32-bit float depth be needed for the upcoming OpenEXR plugin, added
also the remaining ones that will be eventually supported by KTX and DDS
plugins.
5 years ago
Vladimír Vondruš
3d136503d8
Updated copyright year.
5 years ago
Vladimír Vondruš
19e0e96d74
Updated copyright year.
6 years ago
Vladimír Vondruš
5b1c521f99
DebugTools: provide verbose diagnostic from CompareImage.
7 years ago
Vladimír Vondruš
5ebd8394e8
DebugTools: doc++
...
The note was totally useles and additionally I made a few brainfarts
here and there.
7 years ago
Vladimír Vondruš
a0232e8506
DebugTools: CompareImage can now compare against pixel views.
...
This is getting too good.
7 years ago
Vladimír Vondruš
c6737e1958
DebugTools: PIMPL all CompareImage's state.
...
The distinction didn't make sense and we had to include more than
necessary. It's great how easy those refactorings are with the 100% code
coverage.
7 years ago
Vladimír Vondruš
ed6cde9536
DebugTools: support --save-diagnostic in CompareImage.
7 years ago
Vladimír Vondruš
4f55a17316
DebugTools: well, yes, isn't that obvious?
7 years ago
Vladimír Vondruš
f102b86645
DebugTools: prepare CompareImage for more than one plugin manager.
7 years ago
Vladimír Vondruš
9e0b24fa5b
DebugTools: doc++, minor cleanup.
7 years ago
Vladimír Vondruš
5d9fb386f5
DebugTools: make CompareImage work correctly with NaNs and infinities.
7 years ago
Vladimír Vondruš
3626562e1d
Adapted to Corrade changes.
...
Mostly missing includes now.
7 years ago
Vladimír Vondruš
10fec86534
DebugTools: no need to use std::vector in CompareImage internals.
...
Containers::Array will do juust fine.
7 years ago
Vladimír Vondruš
94ca8273e1
No need to leak GL headers everywhere.
7 years ago
Vladimír Vondruš
db44b570f7
DebugTools: make CommpareImage usable with CORRADE_COMPARE_AS().
7 years ago
Vladimír Vondruš
f9f3df69de
Get rid of std::unique_ptr.
7 years ago
Vladimír Vondruš
e6b7aa12fa
Updated copyright year.
7 years ago
Vladimír Vondruš
6bd44bffd6
DebugTools: fix a build system corner case.
7 years ago
Vladimír Vondruš
7ad64bda2a
DebugTools: add CompareImageFile, CompareImageToFile + CompareFileToImage.
...
These provide more convenience for the usual cases of comparing a
generated image to a file and vice versa.
8 years ago
Vladimír Vondruš
22d1f3bb9f
DebugTools: minor cleanup.
8 years ago
Vladimír Vondruš
4d565a8f73
DebugTools: CompareImage now supports only generic pixel formats.
8 years ago
Vladimír Vondruš
7785698d35
Split the OpenGL layer out, pt 21: adapted DebugTools.
8 years ago
Vladimír Vondruš
01e2727326
Removed PixelStorage::setSwapBytes().
...
Too much burden to implement. Nope. Sorry. All APIs were just asserting
that it's not enabled at the moment, so I may as well just remove it
completely.
8 years ago
Vladimír Vondruš
623fa97970
Updated copyright year.
8 years ago
Vladimír Vondruš
36f5030ffd
DebugTools: use ANSI text file instead of a terminal screenshot.
9 years ago
Vladimír Vondruš
7a16273e5d
Updated copyright year.
9 years ago
Vladimír Vondruš
c45472a0f0
DebugTools: initial implementation of CompareImage class.
...
Currently just does per-pixel comparison and calculates absolute delta,
failing the comparison if max/mean delta threshold is above specified
values. Useful enough for the case I have right now, might fail in other
case -- but still better than whatever else I was using before :)
9 years ago