Jump to content
  • Advertisement
Sign in to follow this  
Expression2

[D3D12] Pixel shader ran, but with no outputs

This topic is 830 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

As seen in the image, the vertex shader has successfully run with 175 cubes, 2100 triangles in total. The pixel shader stage ran, but with no outputs. Why?

 

Visual Studio Graphics Analyzer log file: [attachment=32232:Report20160610-1735.zip]

 

[attachment=32231:Report20160610-1735.diagsession.png]

Share this post


Link to post
Share on other sites
Advertisement

Did you set a scissor rect (RSSetScissorRects)?

 

I found that not setting a scissor rect works fine on my laptop, but nothing will get through to the pixel shader on my desktop. If that's not it maybe you could provide a little more detail of how you set up your pipeline state for that draw call (obj:11 should have the pipeline state)

Edited by iedoc

Share this post


Link to post
Share on other sites

Scissor is fine.

 

SampleMask in the PSO is set to 0 rather than 0xFFFFFFFF (or at least 0x1). You're asking it to write out to none of the samples, which, surprisingly enough, results in no samples being written to :).

Can't believe I actually missed that.

As a token of appreciation here is my project https://1drv.ms/f/s!AmpBEaZtbJqMoplA_Yx9lN1PtPxIHg

The project involves Win32, DirectComposition, D3D11on12, D3D12, and CreateSwapChainForComposition. You may be interested as it features a method to create a window with transparency without layered windows and all its incompatibilities and performance compromises.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!