Jump to content

  • Log In with Google      Sign In   
  • Create Account

krywen

Member Since 07 Aug 2012
Offline Last Active Apr 29 2015 07:31 AM

Posts I've Made

In Topic: Allowed format in Create View

10 March 2015 - 03:09 AM

If you want to know which formats are supported for different uses, then go here and browse to the appropriate page for the feature level that you're targetting.

Let's have a look at D3D11, HW supported formats for depth stencil are

  • DXGI_FORMAT_D32_FLOAT_S8X24_UINT
  • DXGI_FORMAT_D32_FLOAT
  • DXGI_FORMAT_D24_UNORM_S8_UINT
  • DXGI_FORMAT_D16_UNORM

- From my undesrtanding these are the only format allowed for resources to be selected in a depth-stencil view, NOT the format allowed in the depth-stencil view, those are listed here https://msdn.microsoft.com/en-us/library/windows/desktop/ff476112%28v=vs.85%29.aspx. Is this correct?

 

- Still I can't find is it is legal to use in the view a format with different size from the selected resource. E.g. is it legal to use DXGI_FORMAT_D16_UNORM as a format in a D3D11_DEPTH_STENCIL_VIEW_DESC structure when the selected subresource has format DXGI_FORMAT_D32_FLOAT_S8X24_UINT? I only suppose is not legal but cannot find a proper specification for this.

 

[Edit - Clarification]


PARTNERS