Backends: DX12: let the user specifies the DepthStencilView format. (#8217)

This is particullarly important for those who use RenderPasses.
This commit is contained in:
bmarques1995
2024-12-09 01:19:23 -03:00
committed by ocornut
parent 2671f68f7f
commit 53dd7552dc
4 changed files with 9 additions and 1 deletions

View File

@@ -146,6 +146,7 @@ int main(int, char**)
init_info.CommandQueue = g_pd3dCommandQueue;
init_info.NumFramesInFlight = APP_NUM_FRAMES_IN_FLIGHT;
init_info.RTVFormat = DXGI_FORMAT_R8G8B8A8_UNORM;
init_info.DSVFormat = DXGI_FORMAT_UNKNOWN;
// Allocating SRV descriptors (for textures) is up to the application, so we provide callbacks.
// (current version of the backend will only allocate one descriptor, future versions will need to allocate more)
init_info.SrvDescriptorHeap = g_pd3dSrvDescHeap;