• Advertisement
Sign in to follow this  

Pixel Shader 'stage Did Not Run'

This topic is 639 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi Guys,
 
I am scratching my head with this one.
 
I have a basic pixel shader that should just fill the geometry white
 
float4 main() : SV_TARGET
{
	return float4(1.0f, 1.0f, 1.0f, 1.0f);
}
And a vertex shader that leaves the geometry un transformed
float4 main(float4 pos : POSITION) : SV_POSITION
{
	return pos;
}
I can see in the debugger that the geometry is rendering ok, but the pixel shader seems to be bypassed.

z4wgdDT.png

I can see from the debugger that the shader has loaded correctly.

I am at a loss as to why this doesn't render anything on screen.

Any advice is greatly appreciated :)

Share this post


Link to post
Share on other sites
Advertisement

Is there a depth buffer bound?  And if so, is depth testing enabled?  First glance looks like it's getting rejected. If you look in the event history (usually on the side of the graphics debugger) you may see a little symbol that looks like a crossed out 'Z' (if I'm remembering correctly).

Share this post


Link to post
Share on other sites
Arrgh! Noob mistake. I didn't set the viewport anywhere.

It pays to sleep on it sometimes.

Thanks for all of the suggestions guys. Upvoted each. :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement