Jump to content
  • Advertisement
Sign in to follow this  
CastorX1904

Writing to Texture in Compute Shader

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

Hello everyone.
I try to make a deferred renderer in D3D11 with FEATURE_SET 10.0 (or max 10.1). I thought that I won't implement my deferred combine shader and SSAO shader in a pixelshader but using ComputeShader (no need to draw a quad, shared memory, and so on). But I've just found out that there is no way to bind a texture as an output of the compile shader when using CS_4_0 profile. Is that right? No texture output support? (RWTexture2D and there is no support for UAV to write to textures). My plan was to use the input textures (world space normals, diffuse, depth, etc.) compute the lighting stuff and output it into a texture that can be later used to draw it onto a screen quad and show it on the screen. Any expecrience or useful advice?

Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement

That's right - in feature level 11_0 and up you can indeed have a UAV for a texture, but in the 10_0 and 10_1 feature levels that isn't supported.  Is there a solid reason that you can't expect an 11_0 or better graphics card, or is it just your intended target hardware level?

Share this post


Link to post
Share on other sites

CS_4_0 is borderline useless, I'd recommend just sticking with a pixel shader if you're capped out at FEATURE_LEVEL_10_0.

Share this post


Link to post
Share on other sites

Ok. Thanks. I've hoped that I've just missed something, but now it looks to me that one very important feature is simply missing from CS with feature set 10. I will continue my work with a pixel shader. Thanks again!

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!