Vladimír Vondruš
71a9f1bbbf
Reserve zero [Compressed]PixelFormat for an invalid value.
...
Catches accidents better -- just look at the diff. Might catch accidents
in your code now as well, so beware!
7 years ago
Vladimír Vondruš
e52c9e8d9e
Export globals and make them weak on static builds so they work across SOs.
...
Well, except on Windows -- not yet. Added an XFAIL for that.
7 years ago
Vladimír Vondruš
59aade762a
Audio, GL: add tests for global state shared across libraries.
...
Both currently fail on static builds.
7 years ago
Vladimír Vondruš
7b43ab5fc2
GL: create the buffer passed to setBuffer() if it's not already.
7 years ago
Vladimír Vondruš
692cb4e173
GL: test setting an empty buffer to BufferTexture and filling it after.
...
The driver should recalculate the texture size after. This test fails when
ARB_DSA is not present as the underlying GL buffer is not created yet at
that point.
7 years ago
Vladimír Vondruš
dbc029e18e
GL: added BufferTexture::size().
...
Why the heck was it not here? Did I fear GL errors too much?
7 years ago
Vladimír Vondruš
40b8815b9d
Added sRGB formats to PixelFormats + R and RG sRGB GL texture formats.
...
The extension support is a mess, as usual. This time the ES flavor
supports something that desktop doesn't and WebGL lack those altogether.
Yay.
7 years ago
Vladimír Vondruš
be65f85e88
GL: recognize KHR_texture_compression_astc_sliced_3d.
7 years ago
Vladimír Vondruš
87a446c7ba
GL: recognizing {EXT,ANGLE}_texture_compression_dxt{1,3,5} extensions.
...
This makes it possible to test S3TC code paths on SwiftShader as well.
7 years ago
Vladimír Vondruš
907c91ac7b
GL: minor cleanup.
7 years ago
Vladimír Vondruš
6e97039b8d
GL: don't include MAGNUM_shader_vertex_id on ES2 builds.
...
It makes one think such feature *could* be supported there, while it
couldn't.
7 years ago
Vladimír Vondruš
24a6c35017
GL: properly mark extension core versions.
7 years ago
Vladimír Vondruš
742aec665d
GL: harden extension list tests.
...
This uncovers a few important issues, yay!
7 years ago
Vladimír Vondruš
435f7a9f14
GL: remove redundant defines to slim the GL headers a bit.
...
What the hell, why does the ASTC HDR extension add *the exact same*
defines as the LDR one.
7 years ago
Vladimír Vondruš
65ea1eb91a
GL: properly use sRGB PixelFormat for sRGB ETC compressed formats.
7 years ago
Vladimír Vondruš
8e57060f39
Support for PVRTC compressed pixel format.
7 years ago
Vladimír Vondruš
2b9772d86a
Added generic ASTC formats and the corresponding WebGL extensions.
7 years ago
Vladimír Vondruš
7cb0c4d57d
Added BC4, BC5, BC6H and BC7 compression formats.
...
Those are now also available under WebGL 1/2 and OpenGL ES 3.O (strangely
not OpenGL ES 2.0) under EXT_texture_compression_{rgtc,bptc}. The GL names
are extra weird-ass now that all other APIs use the BC names.
7 years ago
Vladimír Vondruš
02538d566f
Added sRGB variants of BC1/BC2/BC3 compression formats.
7 years ago
Vladimír Vondruš
1e761d5701
GL: minor cleanup.
7 years ago
Vladimír Vondruš
9aae386464
GL: add an important bit of tribal knowledge.
7 years ago
Vladimír Vondruš
619b4a3cb7
Be strict for missing values in pixel format switches.
7 years ago
Vladimír Vondruš
5a2547dd40
GL: clarify use of sRGB formats on ES.
7 years ago
Vladimír Vondruš
15f9ec3adf
Added {EXT_texture_compression,WEBGL_compressed_texture}_s3tc_srgb extensions.
...
And silently the definitions from EXT_texture_sRGB (core since GL 2.1) as
that's where definitions for sRGB S3TC formats are hiding on desktop.
7 years ago
Vladimír Vondruš
fad30db41d
GL: fix and add a comment so I don't mess this up again in the future.
7 years ago
Vladimír Vondruš
7d9ceb8832
Added ETC2 and EAC compressed pixel formats to the generic enum.
7 years ago
Vladimír Vondruš
acf06eb6d8
GL: don't implicitly enable debug output in OpenGLTester.
...
It's just too spammy and we have a nice opt-in way now, so direct users to
use that instead.
7 years ago
Vladimír Vondruš
4e218d3f24
Platform: new nv-egl-forward-compatible-context-unhappy workaround.
...
SIGH. WHY CAN'T WE HAVE NICE THINGS.
7 years ago
Vladimír Vondruš
8587afaca7
GL: improve Attribute docs with clear integer/double unavailablility errors.
7 years ago
Mandeep Singh Baines
acaf35ad69
GL: imageSize is not available for GLES < 3.1
...
Fixes the following compile error:
magnum/src/Magnum/GL/Texture.h:747:44: error: no member named 'imageSize' in 'Magnum::GL::AbstractTexture::DataHelper<2>'
return DataHelper<dimensions>::imageSize(*this, level);
^
7 years ago
Vladimír Vondruš
9e03dd077a
GL: fix test asserts with the recently-deprecated nullptr ImageView.
7 years ago
Vladimír Vondruš
67bdc1bbd4
GL: make the ApiTrace viewport workaround no longer silent.
7 years ago
Vladimír Vondruš
f22a626bc1
GL: these functions aren't available on ES.
...
Discovered when trying to call bindFragDataLocation() on ES.
7 years ago
Vladimír Vondruš
e6ba699b6f
GL: make this doc section easier to find.
7 years ago
Vladimír Vondruš
8d22aaa28f
GL: improve docs for RenderbufferFormat, list alternatives.
...
I'm spending way too much time looking for alternatives here, so this
helps me.
7 years ago
Vladimír Vondruš
d0a02a2429
GL: allow reading of zero-size images.
...
It's useless, but not disallowed -- it shouldn't assert on that.
7 years ago
Vladimír Vondruš
c0a206d5f4
GL: minor code reordering, doc++.
...
Getter and setter *should* be next to each other. I was horrified for 9
seconds that there's no setViewport().
7 years ago
Vladimír Vondruš
df6582d948
Platform: ask for debug context if --magnum-gpu-validation is enabled.
...
Also mention the option more prominently in related docs.
7 years ago
Vladimír Vondruš
8af19f21f0
Audio: make it possible to disable OpenAL extensions as well.
...
Finally, a feature parity.
7 years ago
Vladimír Vondruš
8131701e7e
Doc++, updated credits and changelog.
7 years ago
Vladimír Vondruš
a14be9b154
Adapt to (breaking) Corrade changes.
7 years ago
Vladimír Vondruš
1b37d22006
Doc++
7 years ago
Vladimír Vondruš
b0def187ae
Mutable image views can be passed via const&.
...
We're not changing the view parameters, only writing to the memory it
points to.
7 years ago
Vladimír Vondruš
07b3253714
GL: make it possible to read pixel data into mutable image views.
...
UGH I hate cube maps and all the driver bugs that make them so freaking
annoying to implement.
7 years ago
Vladimír Vondruš
09f5a15d36
GL: my engrish is bettar now.
7 years ago
Vladimír Vondruš
e8cd9a2b93
GL: minor cleanup in the test.
7 years ago
Vladimír Vondruš
1b7c2d9666
Use Basic[Mutable]ImageView aliases instead of nondescript raw types.
7 years ago
Vladimír Vondruš
93789721b2
De-inline Image headers, remove dependency on ImageView.
...
This means users have to add some more #includes on their side. Sorry
but it's for your own good :P
7 years ago
Vladimír Vondruš
41b975cb69
New Mutable[Compressed]ImageView types for non-const image data views.
7 years ago
Vladimír Vondruš
3d5f50ac49
Test: use the new setTestCaseTemplateName().
7 years ago