This avoids testing marching cubes Cyril Crassin demo..
it uses Geometry shaders and texelFetch2D..
Need to test when Geometry shaders are exposed in upcoming 10.01 I hope..
Geometry shader and texelFetch2D
A geometry shader (perhaps a vertex or fragment shader also) containing this code:
uniform isampler2D triTableTex;
int triTableValue(int i, int j){
return texelFetch2D(triTableTex, ivec2(j, i), 0).a;
}
using texelFetch2D from and integer texture fails with:
Compilation error: Geometry shader failed to compile with the following errors:
ERROR: 0:60: 'texelFetch2D' : no matching overloaded function found
if texture is float there are no errors.
Please see detailed post on AMD forums:
http://forums.amd.com/forum/messageview.cfm?catid=347&threadid=117742&highlight_key=y
Thursday, 26 November 2009
Bugs in OpenGL AMD drivers: Geometry shader and texelFetch2D
Posted on 01:02 by Unknown
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment