[Mesa-dev] Choosing texture internal format in GLES
Marek Olšák
maraeo at gmail.com
Mon Sep 30 03:38:05 PDT 2013
It will indeed select RGBA32F if you supply GL_RGBA and GL_FLOAT, etc.
Marek
On Mon, Sep 30, 2013 at 9:36 AM, Rogovin, Kevin <kevin.rogovin at intel.com> wrote:
> Hi,
>
>> No, I said it would be better to use st_choose_matching_format in st_ChooseTextureFormat,
>> because st_choose_matching_format does exactly what you're trying to do.
>>
>> I have gone ahead and implemented what I had in mind. See the attached patch.
>>
>> Marek
>
> One thing to make sure of in the tables used by st_choose_matching_format in GLES1/2: that HALF_FLOAT and FLOAT make the texture 16-bit and 32-bit texture respectively(for when half float and/or full float textures are supported). From a developers point of view, the GLES1/2 glTexImage parameters of external format and type are to essentially determine the format of the texture; the idea was/is that in GLES1/2 glTex[Sum]Image calls were not supposed to do format conversions, so the developer selected the format with the external format and external type parameters.
>
>
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list