<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Pixel Shader Effects in WPF using .Net3.5sp1 Beta</title>
	<atom:link href="http://rob.runtothehills.org/archives/180/feed" rel="self" type="application/rss+xml" />
	<link>http://rob.runtothehills.org/archives/180</link>
	<description>Talk is cheap. Show me the code.</description>
	<lastBuildDate>Tue, 24 Aug 2010 09:16:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: SeveQ</title>
		<link>http://rob.runtothehills.org/archives/180/comment-page-1#comment-1506</link>
		<dc:creator>SeveQ</dc:creator>
		<pubDate>Thu, 30 Jul 2009 21:44:15 +0000</pubDate>
		<guid isPermaLink="false">http://runtothehills.org/rob/archives/180#comment-1506</guid>
		<description>Okay, I have found the problem... code was incomplete.</description>
		<content:encoded><![CDATA[<p>Okay, I have found the problem&#8230; code was incomplete.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SeveQ</title>
		<link>http://rob.runtothehills.org/archives/180/comment-page-1#comment-1505</link>
		<dc:creator>SeveQ</dc:creator>
		<pubDate>Thu, 30 Jul 2009 21:38:13 +0000</pubDate>
		<guid isPermaLink="false">http://runtothehills.org/rob/archives/180#comment-1505</guid>
		<description>Hi there,

can you tell me why I get the following error when I try to compile the shader with Composer 2.5 (not beta)?

Error Error:  Unrecognized RHS value in assignment: &#039;implicitTexture&#039; XXX\Desaturate.fx 25

Error Error: ID3DXEffectCompiler: Error in type checking XXX\Desaturate.fx -1

Error Error: ID3DXEffectCompiler: There was an error initializing the compiler XXX\Desaturate.fx -1



Here is my shader code:

/*

% Description of my shader.
% Second line of description for my shader.

keywords: material classic

date: YYMMDD

*/
#ifndef WPF
float Saturation  = 0.5f;
#else
float Saturation : register(c0);
#endif

#ifndef WPF
sampler2D implicitSampler = sampler_state {
	texture = implicitTexture;
	AddressU = Clamp;
	AddressV = Clamp;
	MagFilter = Linear;
	MipFilter = POINT;
	MinFilter = LINEAR;
	MagFilter = LINEAR;
	
};
#else
sampler2D implicitSampler : register(s0);
#endif

float4 DesaturatePS(float2 uv : TEXCOORD0) : COLOR {
	float3 LuminanceWeight = float3(0.299, 0.578, 0.114);
	float4 srcPixel = tex2D(implicitSampler, uv);
	float luminance = dot(srcPixel, LuminanceWeight);
	float4 dstPixel = lerp(luminance, srcPixel, Saturation);
	
	dstPixel.a = srcPixel.a;
	
	return dstPixel;
}

Thanks a lot!</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>can you tell me why I get the following error when I try to compile the shader with Composer 2.5 (not beta)?</p>
<p>Error Error:  Unrecognized RHS value in assignment: &#8216;implicitTexture&#8217; XXX\Desaturate.fx 25</p>
<p>Error Error: ID3DXEffectCompiler: Error in type checking XXX\Desaturate.fx -1</p>
<p>Error Error: ID3DXEffectCompiler: There was an error initializing the compiler XXX\Desaturate.fx -1</p>
<p>Here is my shader code:</p>
<p>/*</p>
<p>% Description of my shader.<br />
% Second line of description for my shader.</p>
<p>keywords: material classic</p>
<p>date: YYMMDD</p>
<p>*/<br />
#ifndef WPF<br />
float Saturation  = 0.5f;<br />
#else<br />
float Saturation : register(c0);<br />
#endif</p>
<p>#ifndef WPF<br />
sampler2D implicitSampler = sampler_state {<br />
	texture = implicitTexture;<br />
	AddressU = Clamp;<br />
	AddressV = Clamp;<br />
	MagFilter = Linear;<br />
	MipFilter = POINT;<br />
	MinFilter = LINEAR;<br />
	MagFilter = LINEAR;</p>
<p>};<br />
#else<br />
sampler2D implicitSampler : register(s0);<br />
#endif</p>
<p>float4 DesaturatePS(float2 uv : TEXCOORD0) : COLOR {<br />
	float3 LuminanceWeight = float3(0.299, 0.578, 0.114);<br />
	float4 srcPixel = tex2D(implicitSampler, uv);<br />
	float luminance = dot(srcPixel, LuminanceWeight);<br />
	float4 dstPixel = lerp(luminance, srcPixel, Saturation);</p>
<p>	dstPixel.a = srcPixel.a;</p>
<p>	return dstPixel;<br />
}</p>
<p>Thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rob</title>
		<link>http://rob.runtothehills.org/archives/180/comment-page-1#comment-1346</link>
		<dc:creator>rob</dc:creator>
		<pubDate>Wed, 24 Sep 2008 22:28:09 +0000</pubDate>
		<guid isPermaLink="false">http://runtothehills.org/rob/archives/180#comment-1346</guid>
		<description>Thanks Eric,
I&#039;m completely snowed under on the current WPF project at work, so i haven&#039;t been around on line much, but when i do get back , one of the first things i intend playing with is the final version of pixel shader API. I&#039;ve had a quick look and there still seems to be some limitations but I&#039;ll be better placed to play with it when im not working 18 hour days!
Thanks for reading!
Rob</description>
		<content:encoded><![CDATA[<p>Thanks Eric,<br />
I&#8217;m completely snowed under on the current WPF project at work, so i haven&#8217;t been around on line much, but when i do get back , one of the first things i intend playing with is the final version of pixel shader API. I&#8217;ve had a quick look and there still seems to be some limitations but I&#8217;ll be better placed to play with it when im not working 18 hour days!<br />
Thanks for reading!<br />
Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Rodewald</title>
		<link>http://rob.runtothehills.org/archives/180/comment-page-1#comment-1345</link>
		<dc:creator>Eric Rodewald</dc:creator>
		<pubDate>Wed, 24 Sep 2008 21:05:55 +0000</pubDate>
		<guid isPermaLink="false">http://runtothehills.org/rob/archives/180#comment-1345</guid>
		<description>Really liked this article. Touched on a few things the others haven&#039;t been.. like up the command as an External Tool is very helpful.</description>
		<content:encoded><![CDATA[<p>Really liked this article. Touched on a few things the others haven&#8217;t been.. like up the command as an External Tool is very helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rob</title>
		<link>http://rob.runtothehills.org/archives/180/comment-page-1#comment-1329</link>
		<dc:creator>rob</dc:creator>
		<pubDate>Tue, 15 Jul 2008 15:25:26 +0000</pubDate>
		<guid isPermaLink="false">http://runtothehills.org/rob/archives/180#comment-1329</guid>
		<description>Hi Robert!
 That&#039;s kind of odd, there are no restrictions on the images, and the page access count is quite high, i would have thought there&#039;d have been more comments about broken images if that were the case. Maybe its something on your route that&#039;s restricting access?</description>
		<content:encoded><![CDATA[<p>Hi Robert!<br />
 That&#8217;s kind of odd, there are no restrictions on the images, and the page access count is quite high, i would have thought there&#8217;d have been more comments about broken images if that were the case. Maybe its something on your route that&#8217;s restricting access?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://rob.runtothehills.org/archives/180/comment-page-1#comment-1328</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Tue, 15 Jul 2008 14:50:09 +0000</pubDate>
		<guid isPermaLink="false">http://runtothehills.org/rob/archives/180#comment-1328</guid>
		<description>Also here are the images broken :(

Forbidden
You don&#039;t have permission to access /rob/wp-content/uploads/2008/05/shader.png on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</description>
		<content:encoded><![CDATA[<p>Also here are the images broken <img src='http://rob.runtothehills.org/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Forbidden<br />
You don&#8217;t have permission to access /rob/wp-content/uploads/2008/05/shader.png on this server.</p>
<p>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
