   PIX pixel shader debuger: can't run to cursor
  Hi all. I use PIX to debug pixel shader. The pixel shader fuction is next:--------------------------------------------------------------------float4 PostProcessPS( float2 Tex : TEXCOORD0 ) : COLOR0{    float4 Color = 0;    for (int i = 0; i < g_cKernelSize; i++)    {  Color += tex2D( g_samSrc, Tex + TexelKernel.xy ) * BlurWeights;float2 t1 = TexelKernel;float t2 = g_cKernelSize;float t3 = BlurWeights;    }   return Color;}----------------------------------------------------------------------Here i declared t1,t2,t3 to view they values in debugger. Problem:   - Shader not loops in this cycle ( g_cKernelSize == 13 ). - I can't use "Run to cursor" when my cursor is below the line where uses tex2D method.Thanks in advance.
  Did you disable optimizations when you compiled the shader?  If you don't do this then the generated assembly may not at all match up to your HLSL.   ;  Thnks for replay. I was compiled shader without optimization. Stange, but now all OK. Debuger can loops in a cycle. Maybe i made mistake somewhere..   