diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-01-31 05:37:55 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-01-31 05:37:55 +0000 |
| commit | fd1ed1c23713de58b817ad2bbe2d027c9d1e04cb (patch) | |
| tree | fb3e6908266f9862c4db5cca846cd1d50eae4c0d /unityplugin/GhostCubeScene/src | |
| parent | Merge pull request #71 from ahcox/ahc-001-build_instructions_ubuntu (diff) | |
| download | DiligentEngine-fd1ed1c23713de58b817ad2bbe2d027c9d1e04cb.tar.gz DiligentEngine-fd1ed1c23713de58b817ad2bbe2d027c9d1e04cb.zip | |
Implemented C API
Diffstat (limited to 'unityplugin/GhostCubeScene/src')
| -rw-r--r-- | unityplugin/GhostCubeScene/src/GhostCubeScene.cpp | 9 | ||||
| -rw-r--r-- | unityplugin/GhostCubeScene/src/GhostCubeScene.h | 2 | ||||
| -rw-r--r-- | unityplugin/GhostCubeScene/src/GhostCubeSceneResTrsnHelper.cpp | 2 |
3 files changed, 7 insertions, 6 deletions
diff --git a/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp b/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp index 2e8530d..01c69dd 100644 --- a/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp +++ b/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp @@ -25,12 +25,13 @@ * of the possibility of such damages. */ +#include <algorithm> + #include "GhostCubeScene.h" #include "PlatformDefinitions.h" -#include "BasicMath.h" -#include <algorithm> +#include "BasicMath.hpp" #include "GraphicsUtilities.h" -#include "MapHelper.h" +#include "MapHelper.hpp" #include "CommonlyUsedStates.h" #if D3D12_SUPPORTED @@ -167,7 +168,7 @@ void GhostCubeScene::Render(UnityRenderingEvent RenderEventFunc) pCtx->ClearRenderTarget(pRTV, ClearColor, RESOURCE_STATE_TRANSITION_MODE_TRANSITION); pCtx->ClearDepthStencil(pDSV, CLEAR_DEPTH_FLAG, ReverseZ ? 0.f : 1.f, 0, RESOURCE_STATE_TRANSITION_MODE_TRANSITION); - if (DeviceCaps.DevType == DeviceType::D3D12) + if (DeviceCaps.DevType == RENDER_DEVICE_TYPE_D3D12) { // D3D12 context must be flushed so that the commands are submitted before the // commands issued by the plugin diff --git a/unityplugin/GhostCubeScene/src/GhostCubeScene.h b/unityplugin/GhostCubeScene/src/GhostCubeScene.h index 2221f0c..b80963b 100644 --- a/unityplugin/GhostCubeScene/src/GhostCubeScene.h +++ b/unityplugin/GhostCubeScene/src/GhostCubeScene.h @@ -27,7 +27,7 @@ #include "UnitySceneBase.h" #include "IUnityInterface.h" -#include "BasicMath.h" +#include "BasicMath.hpp" using TSetMatrixFromUnity = void (UNITY_INTERFACE_API *) (float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, diff --git a/unityplugin/GhostCubeScene/src/GhostCubeSceneResTrsnHelper.cpp b/unityplugin/GhostCubeScene/src/GhostCubeSceneResTrsnHelper.cpp index 8860570..d2a87d3 100644 --- a/unityplugin/GhostCubeScene/src/GhostCubeSceneResTrsnHelper.cpp +++ b/unityplugin/GhostCubeScene/src/GhostCubeSceneResTrsnHelper.cpp @@ -32,7 +32,7 @@ #include "IUnityGraphicsD3D12.h" #include "TextureD3D12.h" #include "DeviceContextD3D12.h" -#include "ValidatedCast.h" +#include "ValidatedCast.hpp" using namespace Diligent; |
