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
- How to fix "Access violation executing location" when using GLFW and GLAD
- getting Access violation writing location when calling glDrawElements caused by shader
- Experimenting with GLFW library: window boundary problem and normalized coordinates
- OpenGL Framebuffer/FBO RTT subpixel movement discrepancy
- Why isn't my glfw window showing anything?
- How can glPushMatrix affect the rotation of an object around a rotating object?
- g++ / vscode apparently cannot see my src folder? "cc1plus.exe: fatal error: src/glad.c No such file or directory"
- Does addition-assignment cause dependency chain in GLSL?
- Compiling C++ program with Opengl and Glut in windows
- Using Silk.NET in WinForms
- What happens when rendering an OpenGL buffer that has been padded with NULL (or another value)?
- How can I make a sphere follow an eight-like path in Python using OpenGL?
- OpenGL only rendering second triangle, first triangle not visible
- OpenGL shows black texture on quad
- My Visual Studio 2022 consistently gives me errors saying that the GLchar variable type is undefined
Related Questions in TEXTURES
- LibGDX Normal Textures Not Showing Up in 3D (Blender) Model Java
- A way to warp an image based on a map
- Cracks in my automatic texture in Unreal engine 5
- Threejs .glb loading textures issue, texures not loaded
- Which format should be more smooth for complex R8 textures - BC4 or BC7?
- Unity render Texture is not as clear as the actual gameobject in the scene, how to make it clearer?
- Anyone else notcing delays of shared d3dtexture2D betweeen two processes?
- How to ensure the background texture joins up smoothly around sphere in Three.js?
- Update node's physicsbody with texture animation?
- Transfer GL_TEXTURE_2D Image to GL_TEXTURE_CUBE_MAP
- Converting Texture Atlas exported from Adobe Animate to Images
- WGPU: How to change max_bind_groups/device bind group limit?
- How to calculate Uvs from texture atlas?
- Downloaded model has no materials or textures
- Three.js Y Axis Offset for Equirectangular Image Not Working
Related Questions in RGB
- How do I modify this intrinsics code going from YUV420 to RGB24 to output RGBA32
- What is the size difference between Convolutional Neural Networks that take as input an RGB vs. monochrome image?
- Do decimal values affect color channels in CSS?
- Python converting an sRGB value to RGB
- RAW10 to RGB888 conversion
- How many colors in YCbCr JPEG under common conditions 3x8bits?
- Python: grayscale image to RGB image with provided palette
- Kornia outputs only white images
- How do I change my code to fill an excel spreadsheet with colour?
- Converting Front Hand View to Back Hand View or vice versa Using Python
- Patching a PIL image in pytorch tensor and convert back
- Plot camera sensitivity-wavelength distribution based on RGB image
- Trouble changing background of input textbox
- how do I convert a large array of rgb values to a hex array
- Conflicting LAB Results from RGB
Related Questions in OPENGL-4
- My Visual Studio 2022 consistently gives me errors saying that the GLchar variable type is undefined
- How do I get glBindTextureUnit() to work?
- OpenGL shadow acne visual error without shadows implemented
- sampler2D in compute shaders, compilation errors
- OpenGL shader uniform is not recognized in the code
- Buffer read-back working depends on order of bind/map with DSA
- What happens to buffer attached to VAO via glVertexArrayVertexBuffer after deleting buffer?
- glPolygonOffset and backfaces
- Non-gradual color change in OpenGL
- OpenGL (with OpenTK) texture doesn't render (not even a white rect)
- OpenGL glProam link failed in windows: error C5145: must write to gl_Position
- How Can I Render Round Vertices Using OpenGL 4.0?
- use UV and normal indices in OpenTK
- Passing a big texture to a GLSL shader?
- Strided buffer copy for modifying interleaved vertex attributes
Related Questions in IMAGE-UNIT
- OpenGL Image Load/Store 24-bit RGB images
- Writing to a single colour channel with image_load_store
- Write to mutiple 3Dtextures in fragment shader OpenGL
- How do you get the size of an image unit (eg. image2D) in GLSL just like textureSize
- GLSL Atomic Image Access
- Performance implications setting readonly/writeonly on image units in GLSL
- Accessing image2D from image2DArray
- GLSL image2D antialiasing
- OpenGL 4.2 use same texture as image and as sampler
- GLSL 4.2 - how to retrieve size of image?
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 # Hahtags
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.