DepthStencil array
What is the use and the conditions of use of a DepthStencil array (SetDepthStencilArray) ?
Could someone also give an example of application?
Thanks.
What is the use and the conditions of use of a DepthStencil array (SetDepthStencilArray) ?
Could someone also give an example of application?
Thanks.
Well as the FX file could contain an array of depth stencil view objects you need such a function to set elements of this array.
Could you more specific, please?
This don't tell me:
The only clue that I've found is the D3D10_DSV_DIMENSION_TEXTURE2DMSARRAY type for a DepthStencil view which seems to indicate that DepthStencil arrays are only used with multisampling (I suppose, one per sample). In that case, is there a benefice of using an array rather than a single DepthStencil?
I suppose the idea could be to allow some specific post-processing using variations per sample in the DepthStencil?
Thanks.
Consequently, SV_RenderTargetArrayIndex is also the index of the DepthStencil array.
So when using SV_RenderTargetArrayIndex, it should be compulsory to have the same size for the RenderTarget Array and the DepthStencil Array.
Right?
Thanks.
Consequently, SV_RenderTargetArrayIndex is also the index of the DepthStencil array.
Yes
So when using SV_RenderTargetArrayIndex, it should be compulsory to have the same size for the RenderTarget Array and the DepthStencil Array.
OMSetRenderTargets() has only single NumViews parameter for two pointers (RenderTargetViews and DepthStencilView), so it's explicit.