Obli
06-19-2006, 10:11 AM
Today I wanted to put a loop in fragment shader.
Nothing fancy: loop's guard is a uniform int. Compilation is smooth but linking bails out.
GL info log:
Fragment info
-------------
(39) : error C5043: profile requires index expression to be compile-time constant
<stdlib>(311) : error C5043: profile requires index expression to be compile-time constant
(45) : error C5043: profile requires index expression to be compile-time constant
(47) : error C5043: profile requires index expression to be compile-time constant
(53) : error C5043: profile requires index expression to be compile-time constantSorry, I'm confident it's have been discussed but the search function is broken so here we go.
As soon as I understand it, NV4x is fully PS3.0, with dynamic branching and looping.
I am looping on a uniform, so this must be PS2.x: I'm also pretty sure I've read something on index looping on NV_fragment_program? ('?' is wildcard here) documentation. Having the index to be a compile-time constant would be pretty much useless.
I went to NV website and downloaded the lastest drivers. The error remains. I'm out of ideas. What do you suggest me?
Nothing fancy: loop's guard is a uniform int. Compilation is smooth but linking bails out.
GL info log:
Fragment info
-------------
(39) : error C5043: profile requires index expression to be compile-time constant
<stdlib>(311) : error C5043: profile requires index expression to be compile-time constant
(45) : error C5043: profile requires index expression to be compile-time constant
(47) : error C5043: profile requires index expression to be compile-time constant
(53) : error C5043: profile requires index expression to be compile-time constantSorry, I'm confident it's have been discussed but the search function is broken so here we go.
As soon as I understand it, NV4x is fully PS3.0, with dynamic branching and looping.
I am looping on a uniform, so this must be PS2.x: I'm also pretty sure I've read something on index looping on NV_fragment_program? ('?' is wildcard here) documentation. Having the index to be a compile-time constant would be pretty much useless.
I went to NV website and downloaded the lastest drivers. The error remains. I'm out of ideas. What do you suggest me?