Vladimír Vondruš
d471a7bebd
DebugTools: remove redundant internal state in FrameProfiler.
...
Imagine spending 3 hours on recursive off-by-one and overflow errors.
Wonderful.
6 years ago
Vladimír Vondruš
be9a782272
DebugTools: rename function/test to match the use better.
6 years ago
Vladimír Vondruš
d4c196e997
DebugTools: suggesting such thresholds for image comparison is criminal.
...
Seriously, what the hell was I thinking. If the mean is above 0.01 you
got a problem.
6 years ago
Vladimír Vondruš
6c7e798d86
DebugTools: moving average over a year worth of frames isn't useful.
...
That would generate 32 GB of data. I think the technology isn't ready
for this yet, so I think capping the frame count (and everything else)
at 32 bits is enough.
6 years ago
Vladimír Vondruš
cda8c8fd09
Math: MSVC 2017 apparently dies on this.
...
But only in the vcpkg package and only with 19.16.27034 (not 27035), so
probably some combination of /permissive- and a compiler bug is to
blame.
The template keyword was unnecessary in any case, it probably got copied
from elsewhere by accident.
6 years ago
Vladimír Vondruš
28965d4887
Shaders: I happily forgot SwiftShader has broken gl_VertexID.
...
Sigh.
6 years ago
Vladimír Vondruš
e8f36033f9
Shaders: GS is needed only for wireframe.
...
So don't skip the test when rendering just object/primitive/.. ID. Turns
out due to the skip this test was never executed on SwiftShader, and it
thus needs some threshold bumping.
6 years ago
Vladimír Vondruš
698a7ed24c
Shaders: whoopsie.
6 years ago
Vladimír Vondruš
062055d20d
Shaders: add vertex ID visualization to MeshVisualizer.
...
Helps visualizing face connectivity (or the lack of it).
6 years ago
Vladimír Vondruš
7a58bf5e42
Shaders: reorder code for consistency.
...
It's InstancedObjectId and then PrimitiveId in the flags, so follow the
same order in the code also.
6 years ago
Vladimír Vondruš
6eccc479f0
Shaders: simplify a bunch of repeated checks in shader code.
6 years ago
Vladimír Vondruš
b858385b84
Shaders: unify assert for common flags in 2D and 3D meshvisualizer.
6 years ago
Vladimír Vondruš
806e080008
doc: updated changelog and credits.
6 years ago
Vladimír Vondruš
f1fbafb816
Trade: add a similar assert check for Phong textureMatrix as well.
6 years ago
Squareys
b8cc3f766a
Trade: add *TextureLayer() properties to PhongMaterialData.
...
Signed-off-by: Squareys <squareys@googlemail.com>
6 years ago
Vladimír Vondruš
5f7f219d75
MeshTools: added interleavedMutableData().
...
Needed a mutable variant of interleavedData() without having to do a
const_cast.
6 years ago
Vladimír Vondruš
a3912c7f7f
DebugTools: make FrameProfiler compile w/o TARGET_GL enabled.
6 years ago
Vladimír Vondruš
e7838a8b9e
Platform: check before calling SDL_DestroyWindow().
...
Can cause a crash when exiting from constructor on Windows (but not on
Linux). To be safe do the same for all others.
6 years ago
Vladimír Vondruš
060d8548c6
Math: benchmark some sqrt variants.
6 years ago
Vladimír Vondruš
e05fda0db4
Math: this got forgotten.
6 years ago
Vladimír Vondruš
a27802e67c
GL: sigh, windows.h.
6 years ago
Vladimír Vondruš
3942dff532
GL: add a test for global function pointers across libraries as well.
...
Fails. The huge change just before should have made the fix possible,
but apparently it's not so simple. Nothing is ever simple. Sigh.
6 years ago
Vladimír Vondruš
b580458104
external: pack all dynamically loaded GL entrypoints into a giant struct.
...
On desktop this saves about 50 kB in symbols. Was done for Vulkan
already, this follows that (two years later). I need this in order to
solve the problem of static globals being unique across shared libs, and
it sounded better to export just one symbol instead of 689.
6 years ago
Vladimír Vondruš
3977f0472f
Any*{Importer,Converter}: show used plugin in verbose output.
...
Good for the first step when debugging why is something wrong.
6 years ago
Vladimír Vondruš
9c14d8e354
Introduce a BUILD_STATIC_UNIQUE_GLOBALS option.
...
Same as in Corrade. Because BUILD_STATIC is independent between Corrade
and Magnum this option is also independent -- the corner cases and bad
interactions would be otherwise too complex to handle (e.g., in case of
a dynamic Corrade and static Magnum it would be impossible to enable
this option for Magnum etc etc).
6 years ago
Vladimír Vondruš
bc35478907
modules: updated FindCorrade.cmake.
6 years ago
Vladimír Vondruš
05617c02b5
doc: rewrite the building features docs to be easier to navigate.
...
Turn the BUILD_* options to a list and move unimportant blabber to the
end.
6 years ago
Vladimír Vondruš
2149f31973
MagnumFont,MagnumFontConverter: adapt to Corrade changes.
...
And document this in MagnumFont and MagnumFontConverter usage docs. The
inter-manager dependencies weren't an unused feature after all.
6 years ago
Vladimír Vondruš
b5dead9223
Platform: add no-forward-compatible-core-context workaround for EGL too.
6 years ago
Vladimír Vondruš
b81f78f990
Platform: I messed up.
6 years ago
Vladimír Vondruš
68c7a06ad3
Platform: add a TODO for this weird EGL app implementation.
6 years ago
Vladimír Vondruš
71e3f5d561
doc: updated changelog.
6 years ago
aspioupiou
64d0702277
Platform: only initialize/terminate EGLDisplay once in a shared set.
...
Co-authored-by: Vladimír Vondruš <mosra@centrum.cz>
6 years ago
Vladimír Vondruš
c986f5f99b
DebugTools: make GLFrameProfiler::Values storeable in Configuration.
...
I want to use these in command-line arguments.
6 years ago
Vladimír Vondruš
433dd07d9c
DebugTools: MSVC thanks for existing, again.
6 years ago
Vladimír Vondruš
f2800995b2
DebugTools: deprecate the old Profiler.
6 years ago
Vladimír Vondruš
2c43e817db
DebugTools: wow MSVC thanks for existing.
6 years ago
Vladimír Vondruš
820b9b94a1
DebugTools: initial implementation of a new frame profiler.
...
Replaces the old & extremely useless Profiler. Doesn't have everything I
want yet (missing stddev and fancier GPU queries), that'll come later.
6 years ago
Vladimír Vondruš
ec3e308c9b
doc: all those VAO+DSA entry points are used already.
6 years ago
Vladimír Vondruš
d366e0e7a0
GL: exposed clip / cull distance APIs.
6 years ago
Vladimír Vondruš
2c5aea6999
GL: forgot to list those GLES extensions.
...
They were listed on WebGL tho. Sigh.
6 years ago
Vladimír Vondruš
c114ca3fb9
Doc++
6 years ago
Vladimír Vondruš
7c0b7ad426
GL: and this is misplaced also.
6 years ago
Vladimír Vondruš
391dfbda4f
GL: not that it mattered much, but AbstractQuery forgot to move _flags.
...
These are not really used much so it probably didn't cause any bugs, but
nevertheless. Found while fixing something else.
6 years ago
Vladimír Vondruš
0cd72b1883
GL: give up and disable ARB_explicit_uniform_location on Intel Windows.
...
SIGH FFS.
6 years ago
Vladimír Vondruš
5c10d6eb1e
GL: implemented ARB_pipeline_statistics_query from GL 4.6.
...
Need this for the upcoming FrameProfiler.
6 years ago
Vladimír Vondruš
5ec5b35931
GL: fix double conversion warning in a test.
6 years ago
Vladimír Vondruš
86a5a63af9
Test: most tests now pass on Zink as well.
...
Just adding a bunch of extension checks that I thought I would never
need again.
6 years ago
Vladimír Vondruš
881a50f7fa
Shaders: clarify that object ID features need GL 3.0 extensions.
...
Important for Zink, which has neither of them.
6 years ago
Vladimír Vondruš
511d0c1b27
Platform: choose a GLXFBConfig with a pbuffer.
...
Looking at provided FBConfigs, first few of them are pbuffer-only so why
not just pick those already, we don't need to look for some config that
supports rendering to a window.
6 years ago