qt6-bb10/tests/auto/gui
Laszlo Agocs c262a69851 rhi: gl: Add some enablers for supporting GL_TEXTURE_EXTERNAL_OES
From QRhi's perspective this consists of two things:

- A shader with samplerExternalOES in it cannot go through the standard
  pipeline. Rather, a QShader with suitable GLSL code in it has to be
  constructed manually. As this is something useful as an autotest
  anyway, add a test case to the qshader autotest that demonstrates
  this.

- When it comes to correctly calling glBindTexture, add a QRhiTexture
  flag. The expectation is that an OpenGL-only client sets this in
  combination with QRhiTexture::createFrom(), thus wrapping an existing
  texture that then gets bound to the GL_TEXTURE_EXTERNAL_OES target
  instead of our usual GL_TEXTURE_2D.

For completeness we also add a SamplerExternalOES variable type to
QShaderDescription, but the sampler type is not actually used by the
QRhi OpenGL backend, as it is the QRhiTexture that defines the
texture target.

Change-Id: I36b52325deb3703b59186ee3d726d0c3015bfc4b
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
2021-01-13 10:08:23 +01:00
..
image Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
itemmodels Remove the qmake project files 2021-01-07 15:32:28 +01:00
kernel Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
math3d Remove the qmake project files 2021-01-07 15:32:28 +01:00
painting Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
qopengl Remove the qmake project files 2021-01-07 15:32:28 +01:00
qopenglconfig Remove the qmake project files 2021-01-07 15:32:28 +01:00
qvulkan Remove the qmake project files 2021-01-07 15:32:28 +01:00
rhi rhi: gl: Add some enablers for supporting GL_TEXTURE_EXTERNAL_OES 2021-01-13 10:08:23 +01:00
text Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
util Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
CMakeLists.txt Remove winrt 2020-06-06 20:25:49 +02:00