[英]WP7 - HLSL effects from WPF/Silverlight
I KNOW I did this in WP7 (not WP7.1) and I can't figure out what I did. 我知道我是在WP7(不是WP7.1)中执行此操作的,我不知道自己做了什么。
I'm using this Effect Library 我正在使用这个效果库
I'm using this Effect Build Task and Template 我正在使用此效果构建任务和模板
So basically I opened my WP7 csproj file in notepad add added the following lines: 所以基本上我在记事本中打开了WP7 csproj文件,添加了以下几行:
<UsingTask TaskName="ShaderBuildTask.PixelShaderCompile" AssemblyName="ShaderBuildTask, Version=1.0.3072.18169, Culture=neutral, PublicKeyToken=44e467d1687af125" />
<Target Name="EffectCompile" Condition="'@(Effect)' != '' ">
<PixelShaderCompile Sources="@(Effect)">
<Output TaskParameter="Outputs" ItemName="Resource" />
</PixelShaderCompile>
</Target>
<PropertyGroup>
<PrepareResourcesDependsOn>EffectCompile;$(PrepareResourcesDependsOn)</PrepareResourcesDependsOn>
</PropertyGroup>
And System.Windows.Media.Effects does not contain 而且System.Windows.Media.Effects不包含
ShaderEffect
PixelShader
If anyone knows what I'm doing wrong or has a WP7 template for this that would be awesome. 如果有人知道我在做错什么,或者有一个很棒的WP7模板。 Thanks. 谢谢。 I DO NOT was to use the XNA shaders. 我不是要使用XNA着色器。
As far as I know there has never been support of PixelShaders in WP7. 据我所知,WP7从未支持过PixelShaders。
You must be mistaken with WPF or Silverlight. 您一定会误以为WPF或Silverlight。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.