12. aug. 2016 04.02 skrev "Timothy Arceri" :
>
> On Thu, 2016-08-11 at 20:54 +0200, Thomas Helland wrote:
> > 2016-08-11 18:19 GMT+02:00 Ian Romanick :
> > >
> > > ping
> > >
> > > On 07/19/2016 10:37 PM, Ian Romanick wrote:
> > > >
> > > > From: Ian Romanick
> > > >
> > > > Some shaders include c
On Thu, 2016-08-11 at 20:54 +0200, Thomas Helland wrote:
> 2016-08-11 18:19 GMT+02:00 Ian Romanick :
> >
> > ping
> >
> > On 07/19/2016 10:37 PM, Ian Romanick wrote:
> > >
> > > From: Ian Romanick
> > >
> > > Some shaders include code that looks like:
> > >
> > > uniform int i;
> > > un
On Aug 11, 2016 6:16 PM, "Ian Romanick" wrote:
>
> On 08/11/2016 11:54 AM, Thomas Helland wrote:
> > 2016-08-11 18:19 GMT+02:00 Ian Romanick :
> >> ping
> >>
> >> On 07/19/2016 10:37 PM, Ian Romanick wrote:
> >>> From: Ian Romanick
> >>>
> >>> Some shaders include code that looks like:
> >>>
> >>
On 08/11/2016 11:54 AM, Thomas Helland wrote:
> 2016-08-11 18:19 GMT+02:00 Ian Romanick :
>> ping
>>
>> On 07/19/2016 10:37 PM, Ian Romanick wrote:
>>> From: Ian Romanick
>>>
>>> Some shaders include code that looks like:
>>>
>>>uniform int i;
>>>uniform vec4 bones[...];
>>>
>>>foo(bon
2016-08-11 18:19 GMT+02:00 Ian Romanick :
> ping
>
> On 07/19/2016 10:37 PM, Ian Romanick wrote:
>> From: Ian Romanick
>>
>> Some shaders include code that looks like:
>>
>>uniform int i;
>>uniform vec4 bones[...];
>>
>>foo(bones[i * 3], bones[i * 3 + 1], bones[i * 3 + 2]);
>>
>> CSE w
ping
On 07/19/2016 10:37 PM, Ian Romanick wrote:
> From: Ian Romanick
>
> Some shaders include code that looks like:
>
>uniform int i;
>uniform vec4 bones[...];
>
>foo(bones[i * 3], bones[i * 3 + 1], bones[i * 3 + 2]);
>
> CSE would do some work on this:
>
>x = i * 3
>foo
From: Ian Romanick
Some shaders include code that looks like:
uniform int i;
uniform vec4 bones[...];
foo(bones[i * 3], bones[i * 3 + 1], bones[i * 3 + 2]);
CSE would do some work on this:
x = i * 3
foo(bones[x], bones[x + 1], bones[x + 2]);
The compiler may then add '<< 4 + b