Has anyone tested this case?
if(a)
tex2d(TEXA,...)
else
tex2d(TEXB,...)
Are both reads done?
Is there any way for a variable in device code to hold a texture identifier?
That way i could assign it in the if and only have 1 tex2d.
Has anyone tested this case?
if(a)
tex2d(TEXA,...)
else
tex2d(TEXB,...)
Are both reads done?
Is there any way for a variable in device code to hold a texture identifier?
That way i could assign it in the if and only have 1 tex2d.