Relative Content

Tag Archive for c++opengl-esglslcompute-shader

OpenGL ES compute shader: buffer mapping arrays of different bits

I am trying to set up a Shader Storage Buffer Object to create an array of 16-bit data and an array of 8-bit data. I want to pass the 16-bit data to the shader, and then perform some calculations within the shader to stretch the 16-bit data to fit into an 8-bit format and read it out.