Dx11 texture fx - iterate

In a dx11 texture fx, is it possible to make the shader loop x number of times, and access the iteration index?

Maybe there is already a tfx that does this someone could point me towards?

Cheers

u can just do for loop

for ( int i=0; i<num_iter;++i )
{
code
}

I want the whole pass to run multiple times

try to add:

technique10 Template 
{
	pass P0 
	{ SetPixelShader(CompileShader(ps_4_0, PassThrough())); }
        pass P1 
        { SetPixelShader(CompileShader(ps_4_0, PassThrough())); }
}

not sure it gonna work that way, anyways blur is where that normally used

Yes it’s for a type of bilateral blur

I’d like to be able to set the number of passes arbitrarily, and outside the shader

What do ‘iteration count’ and ‘iterastion count’ in tfx do?

‘iteration count’ and ‘iterastion count’ this prolly unc needed it for something ;]
weird i was pretty sure i’ve seen more stuff in dx11 girlpower on git…
yea i don’t think u can set amount of passes from outside the shader that way
u can kind’a do predefined pass like tech for one pass two pass etc…
otherwise warp ur blur in to a function and do a ‘for loop’…
iteration count prolly uses somekind of predefined semantics to access it need to check it on the build in visual studio…