2 Replies Latest reply on Aug 4, 2010 7:11 PM by tdgeorge

    TXB shader assembly instruction appears to not work with Radeon HD cards



      I have been trying to use the TXB shader assembly instruction so that I can bias the LOD of a texture from the shader but the instruction appears to act exactly like the TEX instruction.  Is TXB supported by Radeon HD 3XXX and 4XXX cards?

      The sample shader acts the same whether it is using TXB or TEX as the texture read instruction.

      Pixel Shader



      ATTRIB inColor = fragment.color.primary;

      ATTRIB texcoord0 = fragment.texcoord[0];

      TEMP texel,temp;

      MOV temp, texcoord0;

      MOV temp.w, 10.0;

      MOV temp.z, 0.0;

      TXB texel, temp, texture[0], 2D;

      MOV result.color, texel;