Skip to content

Commit

Permalink
D3D12: Fix Frame Generation incompatibility/instabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Mar 6, 2025
1 parent 0edfc3b commit 63f3b85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/REFramework.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2241,7 +2241,7 @@ bool REFramework::init_d3d12() {
// Create back buffer rtvs.
auto swapchain = m_d3d12_hook->get_swap_chain();

for (auto i = 0; i <= (int)D3D12::RTV::BACKBUFFER_2; ++i) {
for (auto i = 0; i <= (int)D3D12::RTV::BACKBUFFER_6; ++i) {
if (SUCCEEDED(swapchain->GetBuffer(i, IID_PPV_ARGS(&m_d3d12.rts[i])))) {
device->CreateRenderTargetView(m_d3d12.rts[i].Get(), nullptr, m_d3d12.get_cpu_rtv(device, (D3D12::RTV)i));
} else {
Expand Down
4 changes: 4 additions & 0 deletions src/REFramework.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,10 @@ class REFramework {
BACKBUFFER_0,
BACKBUFFER_1,
BACKBUFFER_2,
BACKBUFFER_3,
BACKBUFFER_4,
BACKBUFFER_5,
BACKBUFFER_6,
IMGUI,
BLANK,
COUNT,
Expand Down

0 comments on commit 63f3b85

Please sign in to comment.