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

@@ -29,7 +29,8 @@ struct ImGui_ImplDX12_InitInfo
ID3D12Device* Device;
ID3D12CommandQueue* CommandQueue;
int NumFramesInFlight;
DXGI_FORMAT RTVFormat;
DXGI_FORMAT RTVFormat; // RenderTarget format.
DXGI_FORMAT DSVFormat; // DepthStencilView format.
void* UserData;
// Allocating SRV descriptors for textures is up to the application, so we provide callbacks.