(Untitled)

Aug 24, 2011 03:12


Since I am only thinking about coding (and travel arrangements) on the run-up to a demo event, I always forget that I'm about to spend time with some of the best people ever. Afterwards, I try to make a note about that... note to self: demoparties have best people ever.

I ran out of time and did not enter the compo at Evoke. One reason is: I ( Read more... )

Leave a comment

Comments 3

gargaj August 25 2011, 06:45:50 UTC
Tried compiling the shaders with CGC and seeing if the ASM code matches?

Reply

andr00 August 26 2011, 02:23:46 UTC
I had not tried that. I thought CGC could only compile CG. But wow, it can compile all sorts of things. Thanks for that tip.

The ASM seems to match.. but it's just ARB assembly and I'm not sure how much this tells me about what the card actually winds up running. ARB assembly seems like a pretty.. high level assembly, if that makes any sense.

It does indeed optimize the second texture unit out when only one is used. Maybe I'm doing something wrong with the texture unit setup. More grinding ahead.

Reply

For the curious: andr00 August 30 2011, 04:35:32 UTC
Yes, I was not completely executing the texture unit setup for this particular shader.

On ATI, The second sampler in the shader appears to default to texture unit 1. On NVidia, it appears they all default to unit 0. Either way, I'm sure I'm not supposed to use sampler uniforms I haven't set.

So we all learned a lesson about CGC and my shit works again. Hooray!

Reply


Leave a comment

Up