From 7e7e51db0829b752b15b4123b9eac1b3e13d0b12 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Thu, 13 Nov 2025 21:09:44 +1000 Subject: [PATCH] D3D12Device: Remove unused class member --- src/util/d3d12_texture.cpp | 8 +++----- src/util/d3d12_texture.h | 3 +-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/util/d3d12_texture.cpp b/src/util/d3d12_texture.cpp index 181334e3f..4ba9d2e53 100644 --- a/src/util/d3d12_texture.cpp +++ b/src/util/d3d12_texture.cpp @@ -861,10 +861,8 @@ std::unique_ptr D3D12Device::CreateTextureBuffer(GPUTextureBuf } D3D12DownloadTexture::D3D12DownloadTexture(u32 width, u32 height, GPUTexture::Format format, - ComPtr allocation, ComPtr buffer, - size_t buffer_size) - : GPUDownloadTexture(width, height, format, false), m_allocation(std::move(allocation)), m_buffer(std::move(buffer)), - m_buffer_size(buffer_size) + ComPtr allocation, ComPtr buffer) + : GPUDownloadTexture(width, height, format, false), m_allocation(std::move(allocation)), m_buffer(std::move(buffer)) { } @@ -909,7 +907,7 @@ std::unique_ptr D3D12DownloadTexture::Create(u32 width, u3 } return std::unique_ptr( - new D3D12DownloadTexture(width, height, format, std::move(allocation), std::move(buffer), buffer_size)); + new D3D12DownloadTexture(width, height, format, std::move(allocation), std::move(buffer))); } void D3D12DownloadTexture::CopyFromTexture(u32 dst_x, u32 dst_y, GPUTexture* src, u32 src_x, u32 src_y, u32 width, diff --git a/src/util/d3d12_texture.h b/src/util/d3d12_texture.h index 0162702e5..abcab2fa5 100644 --- a/src/util/d3d12_texture.h +++ b/src/util/d3d12_texture.h @@ -179,11 +179,10 @@ public: private: D3D12DownloadTexture(u32 width, u32 height, GPUTexture::Format format, ComPtr allocation, - ComPtr buffer, size_t buffer_size); + ComPtr buffer); ComPtr m_allocation; ComPtr m_buffer; u64 m_copy_fence_value = 0; - size_t m_buffer_size = 0; };