Re: d3dx9: Implementation of D3DXGetPixelShaderProfile 1/2 try 3
Luis Busquets <luis.busquets(a)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(a)winehq.org
participants (1)
-
Alexandre Julliard