Am 03.01.2018 um 04:40 schrieb Ilia Mirkin:
> Reviewed-by: Ilia Mirkin <imir...@alum.mit.edu>
> 
> On Tue, Jan 2, 2018 at 9:27 PM,  <srol...@vmware.com> wrote:
>> +       static const char *fs_source =
>> +               "#version 150\n"
>> +               "#extension GL_ARB_gpu_shader5: require\n"
>> +               "uniform samplerBuffer s[2];\n"
>> +               "uniform int offset;\n"
>> +               "uniform int index;\n"
> 
> A little trick I like to use in piglits is "uniform int index = 1\n".
> That way it's still a uniform, but I don't have to bother setting it.
> Your call.
> 

Yes, albeit for some reason it's not done that way in most piglits.
Not sure why really, certainly looks like it would make sense for
uniforms which are not meant to be changed.

Roland
_______________________________________________
Piglit mailing list
Piglit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to