On Thu, Jul 5, 2012 at 1:54 AM, Mark Callow <email@example.com> wrote:What the framework needs to do is a little different. It needs the application to tell it that it wants to use a dynamic image source and then generate or select an appropriate shader. All this can be done before the first draw call. As I mentioned earlier in the thread with the OpenGL architecture there is nowhere other than the draw call where the check and re-compilation could happen.
If you use the same sampler type the implementation has to figure out at run-time what type of image it is sampling and may have to recompile the shader when switching between yuv and rgb images.
But as Florian mentioned most frameworks will be forced to do that anyway. Wouldn't it be preferable to have that happen in native code?
Possibly something like
It's not wonderful either way but I believe that the majority of applications will know in advance which textures will use dynamic sources.
That feels like some sort of hinting system would be more appropriate.
NOTE: This electronic mail message may contain confidential and privileged information from HI Corporation. If you are not the intended recipient, any disclosure, photocopying, distribution or use of the contents of the received information is prohibited. If you have received this e-mail in error, please notify the sender immediately and permanently delete this message and all related copies.