I would like to use the stencil information in my depthstencil buffer as shaderresourceview (DX11) in my shader. I have a DSV D24S8 from which I create a R24X8 resource fine using the red for shadowing but can't use the X8 of course So I try to create a parallel resource X24G8. DX says no error but I'm not sure this is allowed or can work as what I get is a black square when i visualize the stencil X24G8 resource on the screen using the green chanel. Or maybe I'm not reading this correctly. I just send the green value to the pixel shader or try other multiplication stuff to modifty the value but nothing changes.
Is it even possible to create a resource from stencil or a texture declaration in shader can be used to reinterpret the data from R24X8?
thanks
txdiffuse? \$\endgroup\$