Jump to content
  • Advertisement
Sign in to follow this  
Aqua Costa

Taking advantage of bottlenecks, kind of

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

In most fullscreen effects (probably all of them) either the pixel shader or the fill rate is the bottleneck, so I'm wondering if I can do whatever I want to in the vertex/geometry shader as long as it doens't take longer the compute than the pixel shader right?
For example generate the fullscreen quads in the geometry shader so there's no need to bind vertex/index buffers, set input layouts, etc without hurting the performance...

Share this post


Link to post
Share on other sites
Advertisement
As far as shader goes your primary hardware resources are shared among all shader stages (at least on DX10+ hardware), so you're not really going to have any hardware that's idling when performing a full screen effect. However executing a single instance of a geometry shader probably isn't going to make the slightest bit of difference, so if that's convenient for you then go for it. Alternatively you can also use a vertex shader that sets the appropriate vertex position based on SV_VertexID, and that would also let you avoid binding a VB + IB + InputLayout without having to use a geometry shader.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!