In-depth Development.
The most difficult way to achieve
1. Runtime generates shader and writes it to the FX file.
2. Call fxc to compile it into fxo
3. InProgramLoad fxo to generate Effect
Success on PC is the basis of shadertree.
Switched to Windows phone7 for a test. The problem is followed by a string.
First, I/O interfaces are inconsistent. Then, Windows phone7 content cannot be used to test HLSL.
Finally, use titlecontainer. openstream to read the fxo file. The effect prompts that the file cannot be created.
Failed.
After checking the Internet, Windows phone7 does not support custom shader.
The only information is we will do a few things and do them very, very well; we are better off not having a capability than doing it poorly. There are always future versions.
Fortunately, this function is only available in the CTP version. There is still hope for this function in the RC version.
The vectextexture terrain is also required, which cannot be executed on Windows Phone 7.
Depressed, I quickly made a small example of these two parts, so I stopped first. XNa programs that can only run on PCs have no value.
We have native DX on PC.
Looking forward to RC, cursing Microsoft, which is appetizing. At this time, the DOTNET framework was once again mentioned by Microsoft.
Whether Windows Phone 7 will become Windows Vista or Windows 7, you will be able to see the clues when RC is reached.