Hawkwind
01-30-2008, 12:21 AM
I'm a bit of a die-hard for assembler shaders, and used to transposing matrices before I pass them via shader constants to the shader.
HOWEVER, with DX10 I am finally biting the bullet and using effects and HLSL.
Now the effects (.fx files) which I have, require the passing of transform matrices to the effect via the effect variables. That's fine, but they don't
require me to transpose them first. Does this mean that the effect is wasting time by doing this transform ? I have usually maintained copies of transforms 'ready transposed' in my code when using shader 3, but it now seems that by using effects there will be an undesirable preprocessing ( albeit small) each time I set the effect variables ?
Am I missing something here ?
Cheers
HOWEVER, with DX10 I am finally biting the bullet and using effects and HLSL.
Now the effects (.fx files) which I have, require the passing of transform matrices to the effect via the effect variables. That's fine, but they don't
require me to transpose them first. Does this mean that the effect is wasting time by doing this transform ? I have usually maintained copies of transforms 'ready transposed' in my code when using shader 3, but it now seems that by using effects there will be an undesirable preprocessing ( albeit small) each time I set the effect variables ?
Am I missing something here ?
Cheers