Pablo Escobar
7a04f3ec9a
doc: fix links to WebGL2 timer query extensions.
4 years ago
Guillaume Jacquemin
b87398967e
debuggers: add Math::Unit pretty-printer.
4 years ago
Vladimír Vondruš
17638a2ad5
Doc++
...
Just fixing minor consistency issues found when exposing these APIs to
Python.
4 years ago
Vladimír Vondruš
745fd96a5b
Trade: fix an unused variable warning on a no-assert build.
4 years ago
Vladimír Vondruš
e808d10c85
sceneconverter: adapt tests to GltfImporter and SceneConverter changes.
4 years ago
Vladimír Vondruš
e53939c183
DebugTools: did I doze off in the middle of a sentence again?
...
No idea what the rest was meant to be.
4 years ago
Vladimír Vondruš
0aa40f092b
Don't export an inline function.
...
Fixes another MinGW warning.
4 years ago
Vladimír Vondruš
f4939df09f
GL: work around some silly MinGW warnings.
...
I thought this wart was solved long ago, but apparently not.
4 years ago
Vladimír Vondruš
e9f7c8f37d
VK: XFAIL descriptor pool allocation failure tests on llvmpipe.
...
There it never fails, for some reason. Not sure why, but probably not
worth investigating.
4 years ago
Vladimír Vondruš
3dd58581dc
Vk: add conditional XFAILs for tests that assume an Intel GPU.
...
Err... a tightly-packed memory layout like on an Intel GPU. Funny that
SwiftShader follows that but llvmpipe (which is also Mesa!) not.
4 years ago
Vladimír Vondruš
35178edfbd
Vk: adapt fuzzy thresholds to llvmpipe differences.
4 years ago
Vladimír Vondruš
edbc0e106c
AnyShaderConverter: fix a broken glslang test case.
...
This got broken by accident in 7f4500d9e0
(in April) and I apparently didn't check the test output since then.
4 years ago
Vladimír Vondruš
f4fe679d7b
GL: it's time to add an XFAIL to this test.
...
Mesa 21.2 (or was it 21.1.5?) that broke this is over a year old, I
can't be skipping the tests forever like this.
4 years ago
Vladimír Vondruš
3ecd91c0df
Add a Kate setting to wrap plugin conf files to 78 columns.
...
Instead of 80, to fit nicely when indented with two spaces in
magnum-sceneconverter --info-converter and related options.
4 years ago
Vladimír Vondruš
cc9159d387
{scene,image}converter: add --info options for plugins.
...
Lists features, aliases as well as documented contents of the whole
configuration file. Useful to not need to look up online docs when
working on the command line.
4 years ago
Vladimír Vondruš
9cf7ee62f5
imageconverter: move colored output logic at the top.
4 years ago
Vladimír Vondruš
8efde43fa3
imageconverter: reorder all plugin managers to be in a single place.
4 years ago
Vladimír Vondruš
b171dae2dc
imageconverter: remove no longer necessary isEmpty().
4 years ago
Vladimír Vondruš
ded328cd18
imageconverter: start testing this executable as well.
...
Just the --info for now. This seemingly adds quite a lot of uncovered
lines, but those were uncovered before as well, it's just actually
visible now.
4 years ago
Vladimír Vondruš
7067ed91c8
{scene,image}converter: split implementation and executable tests.
...
They're each a totally different beast and putting them into the same
test file doesn't really make sense:
- We want to link certain plugins statically on static builds to test
certain code paths in the implementation. However this is
counter-productive for the executable tests because there we are
checking for plugin presence from the test with the assumption that
the executable and the test have the exact same set of plugins
available (or linked statically).
- The executable tests are implemented on Unix only at the moment,
thus it's wasteful to try to build it on any other platforms. Having
it in a separate file makes it much easier to deal with.
4 years ago
Vladimír Vondruš
8b2bf7f3bb
sceneconverter: missing include in an internal header.
4 years ago
Vladimír Vondruš
c7638f8c47
sceneconverter: generalize --info test a bit.
...
Preparing for different importers and info for plugins.
4 years ago
Vladimír Vondruš
8c917d4570
Clean up unnecessary STL usage in internal converter utilities.
4 years ago
Vladimír Vondruš
30bd1cd3b6
Trade: add MaterialDataType::Buffer.
...
Because storing arbitrary data as a string was not good:
- It *never* followed alignment requirements due to the last byte being
used for size. Instead the size is now stored before the data, and
thus the data is always on the 64 byte boundary.
- As it could contain arbitrary binary data, it could cause
magnum-sceneconverter --material-info to print garbage, corrupt the
terminal or, worst case, crash. Not good.
- It stored an implicit \0, which was unnecessary.
4 years ago
Vladimír Vondruš
0cae7874a4
Math: clarify Intersection::lineSegment*() input requirements.
...
The line segment direction length is crucial for knowing where the
intersection happens so normalizing it beforehand will have unintended
consequences. OTOH, in case of the second (non-segment) variant, the
second parameter can but doesn't have to be normalized.
4 years ago
Vladimír Vondruš
26c973bd9b
Trade: doc++
4 years ago
Vladimír Vondruš
0a32bce31b
Math: add unary operator+ to all types.
...
It was implemented only for the Half type and not the others, and I just
felt like using it on a vector now, 12 years after the Vector class got
first added.
4 years ago
Vladimír Vondruš
b9be0d341f
Account for __EMSCRIPTEN_major__ etc. not being implicit on 3.1.23+.
...
It would all be much simpler if the <emscripten/version.h> header wasn't
added just a few versions ago.
4 years ago
Kleis Auke Wolthuizen
d11a1e1a9d
DebugTools: fix the non-deprecated build on ES3.
4 years ago
Vladimír Vondruš
723c747df4
Make plugin *.conf filenames follow the C++ source filenames.
...
I don't see why they couldn't be the same.
4 years ago
Vladimír Vondruš
b01f8765e9
Doc++
...
Forgot to check doc generation before pushing, ug.
4 years ago
Vladimír Vondruš
7c5089617a
sceneconverter: ability to apply a converter to each image in the scene.
4 years ago
Vladimír Vondruš
2f977d45c8
sceneconverter: fix --plugin-dir for image converters.
...
Sigh, wrong again, it should be the parent directory. The tests for this
are coming too late.
4 years ago
Vladimír Vondruš
0465cf030c
sceneconverter: simplify plugin load error tests a bit.
...
Should have realized this right at the start.
4 years ago
Vladimír Vondruš
6d2a585e06
sceneconverter: minor.
4 years ago
Vladimír Vondruš
387d0dcd84
sceneconverter: ability to apply a converter to each mesh in the scene.
4 years ago
Vladimír Vondruš
5cfa9fddfe
sceneconverter: forgot to exclude this from code coverage.
4 years ago
Vladimír Vondruš
2dc27439d0
sceneconverter: print packed feature enums in error messages.
4 years ago
Vladimír Vondruš
50216faa9e
Platform: print key release events in application tests as well.
4 years ago
Vladimír Vondruš
1925da0a73
sceneconverter: propagate names and custom attributes of processed meshes.
...
It's done by addSupportedImporterContents() only if they aren't
processed explicitly and passed directly.
4 years ago
Vladimír Vondruš
682ba2c41c
sceneconverter: initial support for whole-scene conversion.
...
Quite boring commit message for such a FEATURE, eh?? Yes, the docs need
updating at least.
4 years ago
Vladimír Vondruš
ecee152c03
Trade: unify AbstractSceneConverter::end*() error messages.
...
Not sure why 4ce7d8e9f4 did the change
just for the file variant and not all 3.
4 years ago
Vladimír Vondruš
c73ecffc66
sceneconverter: one more half-done corner case test.
4 years ago
Vladimír Vondruš
bfca053140
sceneconverter: properly test that converters get chained together.
...
What was there didn't really check that the output of one converter was
used as input for the next one. Especially with the upcoming rework for
full scene conversion that could lead to dangerous regressions.
4 years ago
Vladimír Vondruš
e9125c0c8a
sceneconverter: recognize whole-scene converters.
...
Just a minimal support to get single-mesh conversion working with
GltfSceneConverter. The whole thing has to be subsequently reworked to
not be oriented around meshes, but this is the first step.
4 years ago
Vladimír Vondruš
dfbade5670
sceneconverter: make test files resemble a triangle fan.
...
Need that in order to test certain cases better without having to craft
completely new files.
4 years ago
Vladimír Vondruš
1137b56c25
sceneconverter: add .gitattributes and conversion script for test files.
...
Because no way I'm doing that conversion and diffing by hand every time.
4 years ago
Vladimír Vondruš
45e7473d9e
sceneconverter: more needless isEmpty() cleanup.
4 years ago
Vladimír Vondruš
085b3dcabc
sceneconverter: profile also the --concatenate-meshes option.
...
Bah, this is way too brittle (and impossible to test / verify).
4 years ago
Vladimír Vondruš
4af1e8653c
sceneconverter: MeshTools::concatenate() takes an Iterable now.
...
So creating a temporary array of references isn't needed anymore.
4 years ago