title: Can OpenGL convert integer pixel data to floating point or UNORM?
body: <p><code>glTexImage2D</code> takes <code>internalFormat</code> (which specifies number of bits and data type/encoding), <code>format</code> (without number of bits and encoding) and <code>type</code>.</p>
  
  <p>Is it possible, for example, to let OpenGL convert passed pixel data containing 32 bit integers from format <code>GL_RGB_INTEGER</code> and type <code>GL_INT</code> to internal format <code>GL_RGB32F</code>?</p>
  
  <p>The wiki article <a href="https://www.khronos.org/opengl/wiki/Pixel_Transfer#Format_conversion" rel="nofollow noreferrer">https://www.khronos.org/opengl/wiki/Pixel_Transfer#Format_conversion</a> suggests to me it's possible by stating:</p>
  
  <blockquote>
    <p>Pixels specified by the user must be converted between the user-specified format (with format​ and type​) and the internal representation controlled by the image format of the image.</p>
  </blockquote>
  
  <p>But I wasn't able to read from floating point sampler in shader.</p>