Sign in to follow this  

PixelShaderWrapper has no SetUnorderedAccessView methods

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

I've just discovered that the SlimDX pixel shader wrapper class does not include the SetUnorderedAccessView() / SetUnorderedAccessViews() methods that it should (Direct3D11 supports unordered access view use in compute shaders and pixel shaders only).

Was this a simple oversight?

Share this post


Link to post
Share on other sites
In the native side, you set the render targets and UAVs to pixel shaders in the same call to ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews.

This mirrors the fact that, to the pixel shader, all writable resources are on the same list of outputs. I believe that typical hardware implementations follow the same principle. Edited by Nik02

Share this post


Link to post
Share on other sites
This seems to be due to the fact, that there is no native ID3D11DeviceContext::PSSetUnorderedAccessViews method either. A bit mysterious if you ask me. Simply use the OutputMergerWrapper methods instead:
[url="http://slimdx.org/docs/#Overload_SlimDX_Direct3D11_OutputMergerWrapper_SetTargets"]http://slimdx.org/do...pper_SetTargets[/url] Edited by CryZe

Share this post


Link to post
Share on other sites

This topic is 1927 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this