[SOLVED] QOpenGLTexture method createTextureView. Is maximumMipmapLevel and maximumLayer inclusive?
-
wrote on 11 Aug 2015, 13:44 last edited by HarryLong 8 Nov 2015, 16:09
The documentation for the QOpenGLTexture method:
QOpenGLTexture * QOpenGLTexture::createTextureView(Target target, TextureFormat viewFormat, int minimumMipmapLevel, int maximumMipmapLevel, int minimumLayer, int maximumLayer) const
Does not state whether maximumMipmapLevel and maximumLayer are inclusive/exclusive. The associated openGL method is:
void glTextureView( GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
This is clearer as it allows you to state explicitly the number of layers/mipmaps.
-
Hi, welcome to devnet.
Yes, they are inclusive i.e Qt's
min, max
translates to OpenGL'smin, max-min+1
. -
wrote on 11 Aug 2015, 14:34 last edited by
Thanks. I would set this as solved but cannot figure out how...
-
@HarryLong said:
I would set this as solved but cannot figure out how...
Edit your first message's title to start with
[SOLVED]
.
2/4