[Piglit] [PATCH] arb_texture_buffer_object/indexed: test indexed samplers with tbo

Ilia Mirkin imirkin at alum.mit.edu
Wed Jan 3 03:40:15 UTC 2018


Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

On Tue, Jan 2, 2018 at 9:27 PM,  <sroland at 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.

  -ilia


More information about the Piglit mailing list