How to sample a R8_UINT texture in hlsl/direct12?

  • Thread starter Thread starter pixelhistory
  • Start date Start date
P

pixelhistory

Guest
I'm a newbie in DX12 and trying to visualize Stencil buffer onto screen. I've been copied stencil plane slice into a DXGI_FORMAT_R8_UINT texture, but when HLSL samples this texture it just returns 0, and finally my render result is a black screen.Here is the texture2d info from PIX:the sampling code is very straightforward, but when I debug pixel history at uv coordinate (0.398125, 0.534167), it just return a very small value from Sample expression: Texture2D gDiffuseMap : register(t0); SamplerState gsamAnisotr

Continue reading...
 
Back
Top