Skip to content

Commit

Permalink
chore(d3d11): remove unused swapchain resource
Browse files Browse the repository at this point in the history
  • Loading branch information
3Shain committed Dec 8, 2024
1 parent 91d63c9 commit f7c3dcd
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/d3d11/d3d11_swapchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,6 @@ class MTLD3D11SwapChain final : public MTLDXGISubObject<IDXGISwapChain4, MTLD3D1
backbuffer_ = nullptr;
backbuffer_texture2d->QueryInterface(IID_PPV_ARGS(&backbuffer_));

auto texture = backbuffer_->__texture();
alternative_buffer_ = texture->allocate(texture->current()->flags());

if constexpr (EnableMetalFX) {
auto scaler_descriptor =
transfer(MTLFX::SpatialScalerDescriptor::alloc()->init());
Expand Down Expand Up @@ -537,7 +534,6 @@ class MTLD3D11SwapChain final : public MTLDXGISubObject<IDXGISwapChain4, MTLD3D1
D3D11_TEXTURE2D_DESC1 backbuffer_desc_;
Com<IMTLD3D11DeviceContext> device_context_;
Com<IMTLBindable> backbuffer_;
Rc<TextureAllocation> alternative_buffer_;
HANDLE present_semaphore_;
HWND hWnd;
HMONITOR monitor_;
Expand Down

0 comments on commit f7c3dcd

Please sign in to comment.