diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-01-31 16:39:24 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-01-31 16:41:01 +0000 |
| commit | 5e38dd84c3575d04081af3a5402299f53b66c2a2 (patch) | |
| tree | fc4bfa185a4dfd214522a8106ffec819f93c6e09 /unityplugin/GhostCubePlugin/PluginSource | |
| parent | Fixed iOS build error (diff) | |
| download | DiligentEngine-5e38dd84c3575d04081af3a5402299f53b66c2a2.tar.gz DiligentEngine-5e38dd84c3575d04081af3a5402299f53b66c2a2.zip | |
Fixed 32-bit build
Diffstat (limited to 'unityplugin/GhostCubePlugin/PluginSource')
| -rw-r--r-- | unityplugin/GhostCubePlugin/PluginSource/src/RenderAPI_D3D12.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/unityplugin/GhostCubePlugin/PluginSource/src/RenderAPI_D3D12.cpp b/unityplugin/GhostCubePlugin/PluginSource/src/RenderAPI_D3D12.cpp index edb3fc2..d37b42f 100644 --- a/unityplugin/GhostCubePlugin/PluginSource/src/RenderAPI_D3D12.cpp +++ b/unityplugin/GhostCubePlugin/PluginSource/src/RenderAPI_D3D12.cpp @@ -43,13 +43,13 @@ public: IMPLEMENT_QUERY_INTERFACE_IN_PLACE( IID_CommandQueueD3D12, TBase ) // Returns the fence value that will be signaled next time - virtual Uint64 GetNextFenceValue()const override final + virtual Uint64 DILIGENT_CALL_TYPE GetNextFenceValue()const override final { return m_pUnityGraphicsD3D12->GetNextFrameFenceValue(); } // Executes a given command list - virtual Uint64 Submit(ID3D12GraphicsCommandList* commandList)override final + virtual Uint64 DILIGENT_CALL_TYPE Submit(ID3D12GraphicsCommandList* commandList)override final { auto NextFenceValue = m_pUnityGraphicsD3D12->GetNextFrameFenceValue(); m_CurrentFenceValue = m_pUnityGraphicsD3D12->ExecuteCommandList(commandList, static_cast<int>(m_ResourcesToTransition.size()), m_ResourcesToTransition.empty() ? nullptr : m_ResourcesToTransition.data()); @@ -59,19 +59,19 @@ public: } // Returns D3D12 command queue. May return null if queue is anavailable - virtual ID3D12CommandQueue* GetD3D12CommandQueue() + virtual ID3D12CommandQueue* DILIGENT_CALL_TYPE GetD3D12CommandQueue() { return nullptr; } // Returns value of the last completed fence - virtual Uint64 GetCompletedFenceValue() + virtual Uint64 DILIGENT_CALL_TYPE GetCompletedFenceValue() { return m_pUnityGraphicsD3D12->GetFrameFence()->GetCompletedValue(); } // Blocks execution until all pending GPU commands are complete - virtual Uint64 WaitForIdle() + virtual Uint64 DILIGENT_CALL_TYPE WaitForIdle() { if (m_CurrentFenceValue < GetCompletedFenceValue()) { @@ -88,7 +88,7 @@ public: m_ResourcesToTransition.push_back(ResourceState); } - void SignalFence(ID3D12Fence* pFence, Uint64 Value) + virtual void DILIGENT_CALL_TYPE SignalFence(ID3D12Fence* pFence, Uint64 Value) { UNSUPPORTED("Signalling fence via unity command graphics is not supported"); } |
