d3dx9: Implementation of D3DXGetPixelShaderProfile 1/2 try 3

Alexandre Julliard julliard at winehq.org
Fri Aug 1 02:54:30 CDT 2008


Luis Busquets <luis.busquets at ilidium.com> writes:

> +       case D3DPS_VERSION(2, 0):
> +           if ((caps.PS20Caps.NumTemps>=22)                          &&
> +               (caps.PS20Caps.Caps&D3DPS20CAPS_ARBITRARYSWIZZLE)     &&
> +               (caps.PS20Caps.Caps&D3DPS20CAPS_GRADIENTINSTRUCTIONS) &&
> +               (caps.PS20Caps.Caps&D3DPS20CAPS_PREDICATION)          &&
> +               (caps.PS20Caps.Caps&D3DPS20CAPS_NODEPENDENTREADLIMIT) &&
> +               (caps.PS20Caps.Caps&D3DPS20CAPS_NOTEXINSTRUCTIONLIMIT))
> +           {
> +           return "ps_2_a";
> +           }
> +           if ((caps.PS20Caps.NumTemps>=32)                          &&
> +               (caps.PS20Caps.Caps&D3DPS20CAPS_NOTEXINSTRUCTIONLIMIT))
> +           {
> +           return "ps_2_b";
> +           }
> +           return "ps_2_0";

I'm usually tolerant of strange identation styles, but that's not even
indentation at all. Can you please fix this to use a more commonly
accepted format?

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list