It looks like glBindImageTexture does not have an image format for 24-bit RGB (3 8-bit channels) images. My texture has an internal format of the type GL_RGB8 (a 24-bit RGB image). Unfortunately I cannot easily change the type of my texture that I'm binding to the image unit at runtime -- is it possible to use a different image format with imageLoad and still access the 24-bit RGB data?
OpenGL Image Load/Store 24-bit RGB images
1k Views Asked by AnimatedRNG At
1
There are 1 best solutions below
Related Questions in OPENGL
- setting OpenGL version in objective-C
- How to run OpenGL version 3.3 (with Intel HD 4000) on Ubuntu 15.04
- Can linear filtering be used for an FBO blit of an MSAA texture to non-MSAA texture?
- How to get shader version from QOpenGLShader?
- "Capture GPU Frame" in XCode -- iOS only?
- Difference between glewGetString(GLEW_VERSION) and glewIsSupported
- Tesselation result flickering - OpenGL/GLSL
- Water rendering in opengl
- Texture mapping consuming physical memory
- Rotating a Cube using Quaternions in PyOpenGL
- Switching from perspective orthographic projection in OpenGL
- FreeType2 and OpenGL : Use unicode
- Should Meshes with and without Skeleton use different Shaders?
- How to get accurate 3D depth from 2D screen mouse click for large scale object in OpenGL?
- Trying to load 2d texture with glTexImage2D, but just getting blank
Related Questions in TEXTURES
- Can linear filtering be used for an FBO blit of an MSAA texture to non-MSAA texture?
- Texture mapping consuming physical memory
- Quality not proper while rendering it via threejs r71
- SDL2_image rendering not working properly
- Cocos2D 2.x: Running CCWave action makes sprite disappear
- Creating a Texture2DArray and populate it with solid values
- Projecting a texture from plane to object with Unity
- Textured cube renders blank in DirectX
- Programmatically generate texture for WebGL in JavaScript
- Unable to render a texture on a quad
- OpenGl with C++ - Textures
- Random Line Appearing on Moving Texture Node
- Load multiple OBJ-files together with multple textures
- LibGDX "GwtApplication: exception: Couldn't load image 'a.jpg'
- Android OpenGL es 2.0 Can not reload textures on object.
Related Questions in RGB
- How in vb.net can I insert a value on a read only property?
- Store all RGB values in a database
- Convert a 0-1 value to a hex colour?
- Unexpected behavior in my RGB-strip driver code
- Fragment shader does not show any colour when compiled with vs2013
- Matching Xcode color space with Digital Color Meter
- How can I know if the image is in RGB or BGR format?
- How i can set rgb color?
- Read in Bufferedimage pixel values then manipulate each one and write to file
- assign RGB values in java with nested for function
- Why does windows GDI use RGBA format for `COLORREF` instead of BGRA?
- Python skimage.feature.match_template() RGB image
- Why don't images use functions to store rgb values?
- Does RGB supports decimal values?
- Java BufferedImage
Related Questions in OPENGL-4
- Shadow not rendered correctly
- Represent 2D array in opengl 4.5
- Switching from 3D to 2D in OpenGL
- OpenGL texture array layer data copy
- Allocate multiple objects at once or not
- Confused with OpenGL 3+ Core functions and Extensions
- Incorrect result when using 3D textures
- offscreen rendering opengl 4.5 multisample FBO
- Precision of glReadPixels when reading unsigned int
- Parralax mapping does not work correctly using OpenGL and GLSL
- Render large circular points in modern OpenGL
- "Failed to make context current." on a computer without Qt
- What are the Attribute locations for fixed function pipeline in OpenGL 4.0++ core profile?
- How to set a unit for an object in OpenGL
- Failing to map a simple unsigned byte rgb texture to a quad:
Related Questions in IMAGE-UNIT
- How do you get the size of an image unit (eg. image2D) in GLSL just like textureSize
- Writing to a single colour channel with image_load_store
- Performance implications setting readonly/writeonly on image units in GLSL
- Write to mutiple 3Dtextures in fragment shader OpenGL
- GLSL Atomic Image Access
- Accessing image2D from image2DArray
- GLSL image2D antialiasing
- OpenGL Image Load/Store 24-bit RGB images
- GLSL 4.2 - how to retrieve size of image?
- OpenGL 4.2 use same texture as image and as sampler
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
No, you cannot use GL_RGB8 with image load/store. This is done because implementations are allowed to support
GL_RGB8by substituting it withGL_RGBA8. But they are also allowed to not do that if they can support 3-component formats directly. So OpenGL as a specification does not know if the implementation can actually handle 24-bits-per-pixel or if its pretending to do so with a 32-bit texture.So OpenGL just forces you to do the substitution explicitly.