PixelShaderWrapper has no SetUnorderedAccessView methods

Started by
2 comments, last by JohnCorbett 11 years, 6 months ago
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?
Advertisement
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.

Niko Suni

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:
http://slimdx.org/do...pper_SetTargets
Cool. Got it. Thanks.

This topic is closed to new replies.

Advertisement