Sign in to follow this  

Anyone else notice this annoying bug?

This topic is 3739 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I am, in a current project, working with GL_LINE_STRIP_ADJACENCY_EXT and the geometry shader. Now, if I write a geometry shader that takes some input "values[]" from the Vertex Shader and use all four values in the Geometry Shader, I don't have a problem. However, for some of the inputs I need only look at two of the values (the two corresponding to the actual line segement being drawn) and unless I pretend to look at all four (by writing them to some value that is not optimized away) I get nonsense values for these! So, unless I put a line like: gl_Position.x += (value[0] + value[1] + value[2] + value[3]) * 0.0001; in my GS code, value[1] and value[2] are not usable! Does anyone know if this is a registered bug, where I should report it as a bug or if I'm just being stupid? Thank you, Erik Sintorn

Share this post


Link to post
Share on other sites
Why does it matter? I don't know much about shaders, but if you don't use the values, it doesn't matter what values they contain, doesn't it?

How do you even find out what values you get without accessing them? ^^

Share this post


Link to post
Share on other sites
You have your varying in array for a line strip with adj, which provides 4 entries.

0--1--2--3

Now, you're saying that if you don't read [0] and [3] then [1] and [2] are rubbish.

How much vertices are in flight? A thing I've read about how the data is fetched comes to mind - I think it were on NV GS spec and dealt with some differences between the specified behaviour and the real one in some extreme cases...

Share this post


Link to post
Share on other sites

This topic is 3739 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this