WP7 - HLSL effects from WPF/Silverlight

别等时光非礼了梦想. 提交于 2019-12-12 02:28:35

问题


I KNOW I did this in WP7 (not WP7.1) and I can't figure out what I did.

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:

Under Project Root

<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

ShaderEffect
PixelShader

If anyone knows what I'm doing wrong or has a WP7 template for this that would be awesome. Thanks. I DO NOT was to use the XNA shaders.


回答1:


As far as I know there has never been support of PixelShaders in WP7.

You must be mistaken with WPF or Silverlight.



来源:https://stackoverflow.com/questions/9164812/wp7-hlsl-effects-from-wpf-silverlight

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!