[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] WEBGL_debug_shader_precision extension proposal




> On Nov 12, 2014, at 6:20 AM, Jeff Gilbert <jgilbert@mozilla.com> wrote:
> 
> 
> I think it's a bad idea to allow toggling after compilation. If you changed the setting afterwards and want it applied retroactively, we'd have to go back, re-translate, and recompile the shader. Shader recompilation is strongly out of vogue, so avoid it if possible.

I agree, no recompilation.

> 
> ----- Original Message -----
> From: "Olli Etuaho" <oetuaho@nvidia.com>
> 
> ... So I do still think that a #pragma directive is the simplest and most preferable option.
> 

I think having to modify the shaders makes testing and debugging unnecessarily difficult. What’s wrong with an API toggle that applies to all *subsequent* calls to compileShader?

Regards

    -Mark


-----------------------------------------------------------
You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email:
unsubscribe public_webgl
-----------------------------------------------------------