From fd1ed1c23713de58b817ad2bbe2d027c9d1e04cb Mon Sep 17 00:00:00 2001 From: assiduous Date: Thu, 30 Jan 2020 21:37:55 -0800 Subject: Implemented C API --- unityplugin/GhostCubeScene/src/GhostCubeScene.cpp | 9 +++++---- unityplugin/GhostCubeScene/src/GhostCubeScene.h | 2 +- unityplugin/GhostCubeScene/src/GhostCubeSceneResTrsnHelper.cpp | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) (limited to 'unityplugin/GhostCubeScene/src') 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 + #include "GhostCubeScene.h" #include "PlatformDefinitions.h" -#include "BasicMath.h" -#include +#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; -- cgit v1.2.3