Vladimír Vondruš
8b7572361d
GL: this should not be here.
4 years ago
Vladimír Vondruš
c0ef2e1240
GL: hide deprecated enum alias value from Doxygen.
...
Due to \m_enum_values_as_keywords it caused the Half value of the
deprecated HalfFloat to appear first in search as an alias.
4 years ago
Vladimír Vondruš
d939221f7f
doc: refresh various math docs a bit.
4 years ago
Vladimír Vondruš
44c5a9db8d
GL: new "angle-instanced-attributes-always-draw-instanced" workaround.
...
Co-authored-by: Pablo Escobar <mail@rvrs.in>
4 years ago
Pablo Escobar
2b378aecfe
GL: fix MeshGLTest to work on WebGL with a D3D ANGLE backend.
...
This makes the tests actually output something.
4 years ago
Vladimír Vondruš
f231363bb6
GL: improve ANGLE detection on WebGL.
...
It's quite easy if WEBGL_debug_renderer_info is present, but if it isn't
then our only hope is to check for ANGLE-specific extensions. Which may
cause some false positives, but since we need to enable various
workarounds for ANGLE to avoid issues, it's better than having the
detection too conservative.
The original ANGLE detection based on line size is probably not so
relevant anymore, but let's keep it there.
4 years ago
Vladimír Vondruš
0d3cf5a648
Vk: doc++
4 years ago
Vladimír Vondruš
5040362bad
Vk: fix arguments passed to AssertTest.
...
This test is run only on Android because natively CMake treats SIGABRT
as a failure always, even if I want to just check the output. So it
got outdated. Sigh.
4 years ago
Vladimír Vondruš
edf4bfc2cf
Vk: work around crashy vkGetDeviceQueue2() on SwiftShader.
4 years ago
Vladimír Vondruš
99501c1e3d
Vk: missing test file reference.
...
Fixes this test on Android.
4 years ago
Vladimír Vondruš
d89675e8b0
DebugTools: properly skip CompareImage tests with converters missing.
...
It only checked for importers, but the second part of these tests uses
also image converters to produce the actual files.
4 years ago
Vladimír Vondruš
361d87cd9e
Shaders,TextureTools: XFAIL tests that hit weird bugs on SwiftShader 4.0.
...
No patience to investigate.
4 years ago
Vladimír Vondruš
04aeebaf1d
TextureTools: print a note if we're using EXT_texture_rg in a test.
4 years ago
Vladimír Vondruš
5c6b98391d
Math,DebugTools: adapt tests for Android differences in NaN printing.
...
What a waste of energy. I need my own float printing code already.
4 years ago
Vladimír Vondruš
e0ee451a1b
Math: XFAIL some packing tests for x86 Android.
...
Well, I can't tell if it's just 32-bit x86 Android, but it definitely
works well on my ARM64 device.
Also updated the defines to use the consistent CORRADE_TARGET_* macros
instead of the platform-specific mess.
4 years ago
Vladimír Vondruš
22d630db5f
Math: what's the deal with Emscripten and GLES(!)-specific ifdefs here?!
...
Especially the GLES define is some *really weird* leftover from the days
where GL was hardcoded everywhere. What the heck.
4 years ago
Vladimír Vondruš
374aadb480
Shaders,MesTools: forgotten test file.
...
Fixes two failing tests on Emscripten and Android.
4 years ago
Vladimír Vondruš
34b4cd72a4
DebugTools: properly skip a test if plugin is present so we can't test.
...
Fixes a test failure on Emscripten and Android.
4 years ago
Vladimír Vondruš
f145acd760
MeshTools: properly bundle files for CompileGLTest.
...
The path used for Android and Emscripten is relative to the
CMAKE_CURRENT_SOURCE_DIR, so the subdirectory has to be included in the
file paths.
4 years ago
Vladimír Vondruš
e0b20107be
Platform: new "android-generic-hostname-might-be-swiftshader" workaround.
...
As documented. Yes, Android, I hate you, in case that wasn't clear. And
all other Google code as well.
4 years ago
Vladimír Vondruš
cad19439e0
Trade: adapt test to insane alignof(double) == 4 on Android x86.
4 years ago
Vladimír Vondruš
1111b58ce7
Vk: fix compilation on 32-bit targets.
4 years ago
Vladimír Vondruš
efcdfc1221
Adapt to removal of CORRADE_MSVC2019_COMPATIBILITY.
...
Here both cases were related to /permissive- and not to MSVC 2019 bugs,
so I just changed them to rely on the new CORRADE_MSVC_COMPATIBILITY
define.
4 years ago
Vladimír Vondruš
4d574b0073
Test: MSVC 2019 with /permissive- doesn't like this? Huh?
4 years ago
Vladimír Vondruš
ffb82088b9
GL: add an ArrayView setTransformFeedbackOutputs() overload.
...
Interesting, I thought I have done this years ago already. Or that was
the multi-draw() maybe?
4 years ago
Vladimír Vondruš
dea47b16fb
GL: typo.
4 years ago
Vladimír Vondruš
c366874c56
Vk: print also driver info in Device creation log.
...
Just the device alone isn't enough if we can have multiple drivers for
it.
4 years ago
Vladimír Vondruš
9318331b32
vk-info: display features only if --features is set.
...
Otherwise the output is way too big by default.
4 years ago
Vladimír Vondruš
1906dafd7c
doc: update al-info, gl-info and vk-info usage docs.
...
In case of magnum-vk-info there was no documentation whatsoever for some
reason.
4 years ago
Vladimír Vondruš
71bf77a33a
gl-info,vk-info: make instruction set lists more compact.
4 years ago
Vladimír Vondruš
b2f270d7b9
Stop highlighting configure.h.cmake as a CMake source.
4 years ago
Vladimír Vondruš
2ac2155f2c
Shaders: fix MeshVisualizer vertex and object ID to work with TBN.
...
And also expand the docs to say the TBN visualization is not AAd when
used together with those, not just with wireframe.
4 years ago
Vladimír Vondruš
a5407ceb53
Shaders: test MeshVisualizer TBN + vertex and object ID visualization.
...
Fails spectacularly -- the geometry shader is aware only of instanced
object ID, and of vertex ID not at all. The former was a corner case
TODO while I was adding non-instanced object ID visualization in
033e56ec23 and which I kinda forgot about,
the latter was discovered while trying to fix the former.
Fix in the next commit.
4 years ago
Vladimír Vondruš
b13c02649f
Shaders: don't fetch from an UBO if not needed for TBN visualization.
4 years ago
Vladimír Vondruš
026aa7757e
Shaders: instancedNormalMatrix isn't needed if Phong has zero lights.
...
And add an explicit construction test for this case.
4 years ago
Vladimír Vondruš
5dd4a067a5
Shaders: properly bind the instancedNormalMatrix PhongGL attribute.
...
It was only bound via the explicit binding, which isn't in GLES2. Yet
however it just worked, everywhere I tested, somehow.
4 years ago
Vladimír Vondruš
b65a147f30
Trade: print layer index in MaterialData duplicate attribute assert.
...
With really huge materials it's kinda useless to not know which layer
the error happened in -- and usually it's exactly because the layer
indices were specified wrong.
4 years ago
Vladimír Vondruš
9018b937d0
sceneconverter: properly document behavior of --concatenate-meshes.
4 years ago
Vladimír Vondruš
d823ec1607
sceneconverter: use the fancy new Utility::String::parseNumberSequence().
...
We don't have a string-to-int API that can take non-null-terminated
string views yet, but we have this. And that's a much better fit in this
case.
This stripped further 4 kB off the release binary size (178 kB before,
158 after). Fully inlined STL containers and algorithms are a very good
idea, yes.
4 years ago
Vladimír Vondruš
047fd33817
sceneconverter: don't sort mesh attributes by the offset.
...
What a stupid idea, cuz now it's impossible to know which attribute has
which ID, so using --only-attributes is just a total guesswork,
resulting in meshes that have no positions or other nightmare scenarios.
NOT a good idea, past mosra.
By the way, removing the std::sort() stripped 16 kB off the release
binary size (178 kB before, 162 after). Fancy, C++, very fancy.
4 years ago
Vladimír Vondruš
578baf3168
Any{Image,Scene}{Importer,Converter}: improve plugin checks in tests.
...
These checks covered the case when the magnum-plugins repository wasn't
installed, but didn't cover the case when it was installed but the
plugins were built against an outdated interface, had ABI issues, or
didn't load at all for various other reasons.
4 years ago
Vladimír Vondruš
ce63928efc
Make plugin existence checks in tests consistent.
4 years ago
Vladimír Vondruš
ec332235b7
external: update Vulkan headers.
...
Not updating to 1.3 yet, just catching up with the other changes made
since last time.
4 years ago
Vladimír Vondruš
4fa4f726ec
GL: support {ANGLE,WEBGL}_compressed_texture_etc.
4 years ago
Vladimír Vondruš
7bc62bb274
sceneconverter: fix compact output for --info-images.
...
Sigh, I really need Utility::System::exec() with output redirection to
regression-test the utilities, this isn't good.
4 years ago
Vladimír Vondruš
4d14d91d5d
AnyImageConverter: Basis now supports also 3D (2D array) image export.
4 years ago
Vladimír Vondruš
ef6496a5b1
GL: doc++
4 years ago
Vladimír Vondruš
7328fa9ab4
Math: remove obsolete comments in a test -- this is a static assert now.
4 years ago
Vladimír Vondruš
d9efea269a
Math: no need to pass scalars via a const&.
4 years ago
Samuel Vargas
390d3fc06f
Fix invalid iterator access in Device.cpp / Instance.cpp
4 years ago