AndyL

What are the best profiles to pre-compile shaders for on the XBox I was expecting something like xvs_3_0 and xps_3_0, but only seem to be able to use ps_3_0 and vs_3_0. Is this the best we can use

Re: XNA Game Studio Express XBox 360 shader profile

Shawn Hargreaves - MSFT

There's actually only one shader profile on Xbox: "the Xbox one". The Xbox HLSL compiler ignores whatever you specify and always just compiles it for Xbox.





Re: XNA Game Studio Express XBox 360 shader profile

AndyL

It doesn't quite ignore what you specify - for instance I can get this error from the compiler if I specify xxx_3_0 -

error X3041 : unsupported compiler target 'xxx_3_0'

Clearly it is checking something - are you sure it ignores it





Re: XNA Game Studio Express XBox 360 shader profile

Shawn Hargreaves - MSFT

Yep. It probably just checks the string is one of the known profiles, but compilation isn't affected in any way by what profile you specify.





Re: XNA Game Studio Express XBox 360 shader profile

Jon Watte

The Xbox hardware isn't actually SM 3.0 capable. It is 2.0 with some extensions. PC advanced beyond console a bit faster in this generation than last generation...







Re: XNA Game Studio Express XBox 360 shader profile

Shawn Hargreaves - MSFT

Xbox is actually shader 3.0, plus some stuff here and there. A few of the details (like point sprites) aren't 100% the same as on PC, but it does have full shader 3.0 capabilities including vertex texturing and arbitrary per pixel control flow.