microsoft / D3D12TranslationLayer

A library containing utilities for mapping higher-level graphics work to D3D12
MIT License
327 stars 47 forks source link

Fix bug with resolving MSAA depth+stencil resources #82

Closed vdwtanner closed 1 year ago

vdwtanner commented 1 year ago

Resolving a depth+stencil format resource isn't valid due to the stencil UINT component, so we should only resolve the depth plane and also tell d3d that the stencil plane is typeless. (In particular this was causing a crash in Star Wars: The Old Republic with high AA settings)

D16_UNORM isn't supported for resolving either, so just pretend that it's R16_UNORM.