diff --git a/src/xenia/gpu/d3d12/d3d12_shader.cc b/src/xenia/gpu/d3d12/d3d12_shader.cc index 295b75407..9f02e372a 100644 --- a/src/xenia/gpu/d3d12/d3d12_shader.cc +++ b/src/xenia/gpu/d3d12/d3d12_shader.cc @@ -12,6 +12,7 @@ #include "xenia/base/assert.h" #include "xenia/base/logging.h" #include "xenia/gpu/gpu_flags.h" +#include "xenia/ui/d3d12/d3d12_api.h" namespace xe { namespace gpu { @@ -21,12 +22,6 @@ D3D12Shader::D3D12Shader(ShaderType shader_type, uint64_t data_hash, const uint32_t* dword_ptr, uint32_t dword_count) : Shader(shader_type, data_hash, dword_ptr, dword_count) {} -D3D12Shader::~D3D12Shader() { - if (blob_ != nullptr) { - blob_->Release(); - } -} - void D3D12Shader::SetTexturesAndSamplers( const DxbcShaderTranslator::TextureSRV* texture_srvs, uint32_t texture_srv_count, diff --git a/src/xenia/gpu/d3d12/d3d12_shader.h b/src/xenia/gpu/d3d12/d3d12_shader.h index e195ba900..94a168f63 100644 --- a/src/xenia/gpu/d3d12/d3d12_shader.h +++ b/src/xenia/gpu/d3d12/d3d12_shader.h @@ -14,7 +14,6 @@ #include "xenia/gpu/dxbc_shader_translator.h" #include "xenia/gpu/shader.h" -#include "xenia/ui/d3d12/d3d12_api.h" namespace xe { namespace gpu { @@ -24,7 +23,6 @@ class D3D12Shader : public Shader { public: D3D12Shader(ShaderType shader_type, uint64_t data_hash, const uint32_t* dword_ptr, uint32_t dword_count); - ~D3D12Shader() override; void SetTexturesAndSamplers( const DxbcShaderTranslator::TextureSRV* texture_srvs, @@ -65,8 +63,6 @@ class D3D12Shader : public Shader { } private: - ID3DBlob* blob_ = nullptr; - std::vector texture_srvs_; uint32_t used_texture_mask_ = 0; std::vector sampler_bindings_;