diff --git a/Src/BasicPostProcess.cpp b/Src/BasicPostProcess.cpp index 8ee56f77..1e9b6086 100644 --- a/Src/BasicPostProcess.cpp +++ b/Src/BasicPostProcess.cpp @@ -107,8 +107,8 @@ namespace DeviceResources(const DeviceResources&) = delete; DeviceResources& operator=(const DeviceResources&) = delete; - DeviceResources(DeviceResources&&) = default; - DeviceResources& operator=(DeviceResources&&) = default; + DeviceResources(DeviceResources&&) = delete; + DeviceResources& operator=(DeviceResources&&) = delete; // Gets or lazily creates the vertex shader. ID3D11VertexShader* GetVertexShader() @@ -158,6 +158,12 @@ class BasicPostProcess::Impl : public AlignedNew public: explicit Impl(_In_ ID3D11Device* device); + Impl(const Impl&) = delete; + Impl& operator=(const Impl&) = delete; + + Impl(Impl&&) = default; + Impl& operator=(Impl&&) = default; + void Process(_In_ ID3D11DeviceContext* deviceContext, const std::function& setCustomState); void SetConstants(bool value = true) noexcept { mUseConstants = value; mDirtyFlags = INT_MAX; } diff --git a/Src/CommonStates.cpp b/Src/CommonStates.cpp index f96e38d8..fd290b02 100644 --- a/Src/CommonStates.cpp +++ b/Src/CommonStates.cpp @@ -30,8 +30,8 @@ class CommonStates::Impl Impl(const Impl&) = delete; Impl& operator=(const Impl&) = delete; - Impl(Impl&&) = default; - Impl& operator=(Impl&&) = default; + Impl(Impl&&) = delete; + Impl& operator=(Impl&&) = delete; HRESULT CreateBlendState(D3D11_BLEND srcBlend, D3D11_BLEND destBlend, _Outptr_ ID3D11BlendState** pResult); HRESULT CreateDepthStencilState(bool enable, bool writeEnable, bool reverseZ, _Outptr_ ID3D11DepthStencilState** pResult); diff --git a/Src/DGSLEffectFactory.cpp b/Src/DGSLEffectFactory.cpp index 4f1207b8..bde7ea60 100644 --- a/Src/DGSLEffectFactory.cpp +++ b/Src/DGSLEffectFactory.cpp @@ -39,8 +39,8 @@ class DGSLEffectFactory::Impl Impl(const Impl&) = delete; Impl& operator=(const Impl&) = delete; - Impl(Impl&&) = default; - Impl& operator=(Impl&&) = default; + Impl(Impl&&) = delete; + Impl& operator=(Impl&&) = delete; std::shared_ptr CreateEffect(_In_ DGSLEffectFactory* factory, _In_ const IEffectFactory::EffectInfo& info, _In_opt_ ID3D11DeviceContext* deviceContext); std::shared_ptr CreateDGSLEffect(_In_ DGSLEffectFactory* factory, _In_ const DGSLEffectInfo& info, _In_opt_ ID3D11DeviceContext* deviceContext); diff --git a/Src/DualPostProcess.cpp b/Src/DualPostProcess.cpp index 5cdac098..03cab6f6 100644 --- a/Src/DualPostProcess.cpp +++ b/Src/DualPostProcess.cpp @@ -84,8 +84,8 @@ namespace DeviceResources(const DeviceResources&) = delete; DeviceResources& operator=(const DeviceResources&) = delete; - DeviceResources(DeviceResources&&) = default; - DeviceResources& operator=(DeviceResources&&) = default; + DeviceResources(DeviceResources&&) = delete; + DeviceResources& operator=(DeviceResources&&) = delete; // Gets or lazily creates the vertex shader. ID3D11VertexShader* GetVertexShader() @@ -135,6 +135,12 @@ class DualPostProcess::Impl : public AlignedNew public: explicit Impl(_In_ ID3D11Device* device); + Impl(const Impl&) = delete; + Impl& operator=(const Impl&) = delete; + + Impl(Impl&&) = default; + Impl& operator=(Impl&&) = default; + void Process(_In_ ID3D11DeviceContext* deviceContext, const std::function& setCustomState); void SetDirtyFlag() noexcept { mDirtyFlags = INT_MAX; } diff --git a/Src/EffectFactory.cpp b/Src/EffectFactory.cpp index c307dd58..3c79db58 100644 --- a/Src/EffectFactory.cpp +++ b/Src/EffectFactory.cpp @@ -77,8 +77,8 @@ class EffectFactory::Impl Impl(const Impl&) = delete; Impl& operator=(const Impl&) = delete; - Impl(Impl&&) = default; - Impl& operator=(Impl&&) = default; + Impl(Impl&&) = delete; + Impl& operator=(Impl&&) = delete; std::shared_ptr CreateEffect(_In_ IEffectFactory* factory, _In_ const IEffectFactory::EffectInfo& info, _In_opt_ ID3D11DeviceContext* deviceContext); void CreateTexture(_In_z_ const wchar_t* texture, _In_opt_ ID3D11DeviceContext* deviceContext, _Outptr_ ID3D11ShaderResourceView** textureView); diff --git a/Src/PBREffectFactory.cpp b/Src/PBREffectFactory.cpp index eaf0f36e..45b6ccc1 100644 --- a/Src/PBREffectFactory.cpp +++ b/Src/PBREffectFactory.cpp @@ -100,8 +100,8 @@ class PBREffectFactory::Impl Impl(const Impl&) = delete; Impl& operator=(const Impl&) = delete; - Impl(Impl&&) = default; - Impl& operator=(Impl&&) = default; + Impl(Impl&&) = delete; + Impl& operator=(Impl&&) = delete; std::shared_ptr CreateEffect( _In_ IEffectFactory* factory, diff --git a/Src/ToneMapPostProcess.cpp b/Src/ToneMapPostProcess.cpp index 7f3b3a4a..92e4e975 100644 --- a/Src/ToneMapPostProcess.cpp +++ b/Src/ToneMapPostProcess.cpp @@ -198,8 +198,8 @@ namespace DeviceResources(const DeviceResources&) = delete; DeviceResources& operator=(const DeviceResources&) = delete; - DeviceResources(DeviceResources&&) = default; - DeviceResources& operator=(DeviceResources&&) = default; + DeviceResources(DeviceResources&&) = delete; + DeviceResources& operator=(DeviceResources&&) = delete; // Gets or lazily creates the vertex shader. ID3D11VertexShader* GetVertexShader() @@ -252,6 +252,12 @@ class ToneMapPostProcess::Impl : public AlignedNew public: explicit Impl(_In_ ID3D11Device* device); + Impl(const Impl&) = delete; + Impl& operator=(const Impl&) = delete; + + Impl(Impl&&) = default; + Impl& operator=(Impl&&) = default; + void Process(_In_ ID3D11DeviceContext* deviceContext, const std::function& setCustomState); void SetDirtyFlag() noexcept { mDirtyFlags = INT_MAX; }