[Mesa-dev] [PATCH] docs: Expand ARB_gpu_shader5 to describe status of individual features

Ian Romanick idr at freedesktop.org
Fri Apr 11 09:04:22 PDT 2014


On 04/09/2014 01:11 AM, Chris Forbes wrote:
> On Wed, Apr 9, 2014 at 7:23 AM, Ian Romanick <idr at freedesktop.org> wrote:
> 
>> I believe UBO array indices are also dynamically uniform.
> 
> I was surprised to find this when building the list too, but I believe
> it's unrestricted.
> 
> The GLSL 4.0 spec, 4.3.7 p43 (bottom of) says:
> 
>     "Any integral expression can be used to index a uniform block array."

Yeah... that was an oversight.  This was fixed in GLSL 4.40:

    "A uniform or shader storage block array can only be indexed with a
    dynamically uniform integral expression, otherwise results are
    undefined."

> The corresponding language for arrays of samplers is:
> 
>     "...a dynamically uniform integral expression, otherwise results
> are undefined."




More information about the mesa-dev mailing list