Skip to content

Commit

Permalink
Fixed interface headers to use relative paths in #include
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Feb 23, 2018
1 parent b75988c commit 038fa79
Show file tree
Hide file tree
Showing 86 changed files with 155 additions and 137 deletions.
2 changes: 1 addition & 1 deletion Common/interface/LockHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <condition_variable>
#include <atomic>

#include "Atomics.h"
#include "../../../Platforms/interface/Atomics.h"

namespace ThreadingTools
{
Expand Down
7 changes: 4 additions & 3 deletions Common/interface/RefCntAutoPtr.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@

#pragma once

#include "DebugUtilities.h"
#include "../../../Primitives/interface/Object.h"
#include "../../../Platforms/Basic/interface/DebugUtilities.h"
#include "../../../Platforms/interface/Atomics.h"
#include "LockHelper.h"
#include "Atomics.h"
#include "ValidatedCast.h"
#include "RefCountedObjectImpl.h"
#include "Object.h"


namespace Diligent
{
Expand Down
8 changes: 4 additions & 4 deletions Common/interface/RefCountedObjectImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
/// \file
/// Implementation of the template base class for reference counting objects

#include "Object.h"
#include "Atomics.h"
#include "DebugUtilities.h"
#include "../../../Primitives/interface/Object.h"
#include "../../../Primitives/interface/MemoryAllocator.h"
#include "../../../Platforms/interface/Atomics.h"
#include "../../../Platforms/Basic/interface/DebugUtilities.h"
#include "LockHelper.h"
#include "ValidatedCast.h"
#include "MemoryAllocator.h"

namespace Diligent
{
Expand Down
3 changes: 2 additions & 1 deletion Common/interface/StringTools.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
#include <algorithm>
#include <cctype>
#include <string.h>
#include "DebugUtilities.h"

#include "../../../Platforms/Basic/interface/DebugUtilities.h"

namespace Diligent
{
Expand Down
2 changes: 1 addition & 1 deletion Common/interface/ValidatedCast.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#pragma once

#include "DebugUtilities.h"
#include "../../../Platforms/Basic/interface/DebugUtilities.h"

template<typename DstType, typename SrcType>
DstType* ValidatedCast( SrcType *Ptr )
Expand Down
2 changes: 1 addition & 1 deletion Graphics/GraphicsEngine/interface/BlendState.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/// \file
/// Blend state description

#include "BasicTypes.h"
#include "../../../Primitives/interface/BasicTypes.h"

namespace Diligent
{
Expand Down
2 changes: 1 addition & 1 deletion Graphics/GraphicsEngine/interface/BufferView.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/// \file
/// Definition of the Diligent::IBufferView interface and related data structures

#include "DeviceObject.h"
#include "Buffer.h"

namespace Diligent
{
Expand Down
2 changes: 2 additions & 0 deletions Graphics/GraphicsEngine/interface/Constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
/// \file
/// Definition of the engine constants

#include "../../../Primitives/interface/BasicTypes.h"

namespace Diligent
{
/// Maximum number of input buffer slots.
Expand Down
2 changes: 1 addition & 1 deletion Graphics/GraphicsEngine/interface/DepthStencilState.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/// \file
/// Definition of data types that describe depth-stencil state

#include "BasicTypes.h"
#include "GraphicsTypes.h"

namespace Diligent
{
Expand Down
2 changes: 1 addition & 1 deletion Graphics/GraphicsEngine/interface/DeviceContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/// \file
/// Definition of the Diligent::IDeviceContext interface and related data structures

#include "Object.h"
#include "../../../Primitives/interface/Object.h"
#include "DeviceCaps.h"
#include "Constants.h"
#include "Buffer.h"
Expand Down
2 changes: 1 addition & 1 deletion Graphics/GraphicsEngine/interface/DeviceObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/// \file
/// Defines Diligent::IDeviceObject interface

#include "Object.h"
#include "../../../Primitives/interface/Object.h"
#include "GraphicsTypes.h"

namespace Diligent
Expand Down
2 changes: 1 addition & 1 deletion Graphics/GraphicsEngine/interface/GraphicsTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/// \file
/// Contains basic graphics engine type defintions

#include "BasicTypes.h"
#include "../../../Primitives/interface/BasicTypes.h"

/// Graphics engine namespace
namespace Diligent
Expand Down
2 changes: 1 addition & 1 deletion Graphics/GraphicsEngine/interface/InputLayout.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/// \file
/// Definition input layout

#include "BasicTypes.h"
#include "GraphicsTypes.h"

namespace Diligent
{
Expand Down
5 changes: 4 additions & 1 deletion Graphics/GraphicsEngine/interface/MapHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@
/// \file
/// Definition of the Diligent::MapHelper helper template class

#include "DebugUtilities.h"
#include "../../../Platforms/Basic/interface/DebugUtilities.h"
#include "../../../Common/interface/RefCntAutoPtr.h"
#include "DeviceContext.h"
#include "Buffer.h"

namespace Diligent
{
Expand Down
4 changes: 2 additions & 2 deletions Graphics/GraphicsEngine/interface/PipelineState.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
/// \file
/// Definition of the Diligent::IRenderDevice interface and related data structures

#include "../../../Primitives/interface/Object.h"
#include "../../../Platforms/interface/PlatformDefinitions.h"
#include "GraphicsTypes.h"
#include "Object.h"
#include "BlendState.h"
#include "RasterizerState.h"
#include "DepthStencilState.h"
#include "InputLayout.h"
#include "ShaderResourceBinding.h"
#include "PlatformDefinitions.h"

namespace Diligent
{
Expand Down
2 changes: 1 addition & 1 deletion Graphics/GraphicsEngine/interface/RasterizerState.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/// \file
/// Rasterizer state description

#include "BasicTypes.h"
#include "GraphicsTypes.h"

namespace Diligent
{
Expand Down
2 changes: 1 addition & 1 deletion Graphics/GraphicsEngine/interface/RenderDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
/// \file
/// Definition of the Diligent::IRenderDevice interface and related data structures

#include "../../../Primitives/interface/Object.h"
#include "GraphicsTypes.h"
#include "Object.h"
#include "DeviceCaps.h"
#include "Constants.h"
#include "Buffer.h"
Expand Down
2 changes: 1 addition & 1 deletion Graphics/GraphicsEngine/interface/Shader.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
/// \file
/// Definition of the Diligent::IShader interface and related data structures

#include "../../../Primitives/interface/FileStream.h"
#include "DeviceObject.h"
#include "ResourceMapping.h"
#include "FileStream.h"
#include "Sampler.h"

namespace Diligent
Expand Down
7 changes: 5 additions & 2 deletions Graphics/GraphicsEngine/interface/ShaderResourceBinding.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,14 @@
/// \file
/// Definition of the Diligent::IShaderResourceBinding interface and related data structures

#include "Object.h"
#include "../../../Primitives/interface/Object.h"
#include "Shader.h"

namespace Diligent
{

class IPipelineState;

// {061F8774-9A09-48E8-8411-B5BD20560104}
static constexpr INTERFACE_ID IID_ShaderResourceBinding =
{ 0x61f8774, 0x9a09, 0x48e8, { 0x84, 0x11, 0xb5, 0xbd, 0x20, 0x56, 0x1, 0x4 } };
Expand All @@ -47,7 +50,7 @@ class IShaderResourceBinding : public IObject

/// The method calls AddRef() on the returned interface,
/// so Release() must be called to avoid memory leaks.
virtual class IPipelineState* GetPipelineState() = 0;
virtual IPipelineState* GetPipelineState() = 0;

/// Binds all resource using the resource mapping

Expand Down
3 changes: 2 additions & 1 deletion Graphics/GraphicsEngine/interface/SwapChain.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
/// \file
/// Definition of the Diligent::ISwapChain interface and related data structures

#include "Object.h"
#include "../../../Primitives/interface/Object.h"
#include "GraphicsTypes.h"

namespace Diligent
{
Expand Down
2 changes: 2 additions & 0 deletions Graphics/GraphicsEngine/interface/TextureView.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
namespace Diligent
{

class IDeviceContext;

// {5B2EA04E-8128-45E4-AA4D-6DC7E70DC424}
static constexpr INTERFACE_ID IID_TextureView =
{ 0x5b2ea04e, 0x8128, 0x45e4, { 0xaa, 0x4d, 0x6d, 0xc7, 0xe7, 0xd, 0xc4, 0x24 } };
Expand Down
2 changes: 1 addition & 1 deletion Graphics/GraphicsEngineD3D11/interface/BufferD3D11.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/// \file
/// Definition of the Diligent::IBufferD3D11 interface

#include "Buffer.h"
#include "../../GraphicsEngine/interface/Buffer.h"

namespace Diligent
{
Expand Down
2 changes: 1 addition & 1 deletion Graphics/GraphicsEngineD3D11/interface/BufferViewD3D11.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/// \file
/// Definition of the Diligent::IBufferViewD3D11 interface

#include "BufferView.h"
#include "../../GraphicsEngine/interface/BufferView.h"

namespace Diligent
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/// \file
/// Definition of the Diligent::IDeviceContextD3D11 interface

#include "DeviceContext.h"
#include "../../GraphicsEngine/interface/DeviceContext.h"

namespace Diligent
{
Expand Down
3 changes: 1 addition & 2 deletions Graphics/GraphicsEngineD3D11/interface/EngineD3D11Attribs.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
/// \file
/// Definition of the Engine D3D11 attribs

#include "BasicTypes.h"
#include "GraphicsTypes.h"
#include "../../GraphicsEngine/interface/GraphicsTypes.h"

namespace Diligent
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/// \file
/// Definition of the Diligent::IPipeplineStateD3D11 interface

#include "PipelineState.h"
#include "../../GraphicsEngine/interface/PipelineState.h"

namespace Diligent
{
Expand Down
2 changes: 1 addition & 1 deletion Graphics/GraphicsEngineD3D11/interface/RenderDeviceD3D11.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/// \file
/// Definition of the Diligent::IRenderDeviceD3D11 interface

#include "RenderDevice.h"
#include "../../GraphicsEngine/interface/RenderDevice.h"

namespace Diligent
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,18 @@
/// \file
/// Declaration of functions that initialize Direct3D11-based engine implementation

#include "Errors.h"
#include "EngineD3D11Attribs.h"
#include "RenderDevice.h"
#include "DeviceContext.h"
#include "SwapChain.h"
#include "../../../Platforms/Basic/interface/Errors.h"

#include "../../GraphicsEngine/interface/RenderDevice.h"
#include "../../GraphicsEngine/interface/DeviceContext.h"
#include "../../GraphicsEngine/interface/SwapChain.h"

#if PLATFORM_UNIVERSAL_WINDOWS && defined(ENGINE_DLL)
# include "StringTools.h"
# include "../../../Common/interface/StringTools.h"
#endif

#include "EngineD3D11Attribs.h"

namespace Diligent
{

Expand Down
2 changes: 1 addition & 1 deletion Graphics/GraphicsEngineD3D11/interface/SamplerD3D11.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/// \file
/// Definition of the Diligent::ISamplerD3D11 interface

#include "Sampler.h"
#include "../../GraphicsEngine/interface/Sampler.h"

namespace Diligent
{
Expand Down
2 changes: 1 addition & 1 deletion Graphics/GraphicsEngineD3D11/interface/ShaderD3D11.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/// \file
/// Definition of the Diligent::IShaderD3D11 interface

#include "Shader.h"
#include "../../GraphicsEngine/interface/Shader.h"

namespace Diligent
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/// \file
/// Definition of the Diligent::IShaderResourceBindingD3D11 interface and related data structures

#include "ShaderResourceBinding.h"
#include "../../GraphicsEngine/interface/ShaderResourceBinding.h"

namespace Diligent
{
Expand Down
2 changes: 1 addition & 1 deletion Graphics/GraphicsEngineD3D11/interface/SwapChainD3D11.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/// \file
/// Definition of the Diligent::ISwapChainD3D11 interface

#include "SwapChain.h"
#include "../../GraphicsEngine/interface/SwapChain.h"

namespace Diligent
{
Expand Down
2 changes: 1 addition & 1 deletion Graphics/GraphicsEngineD3D11/interface/TextureD3D11.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/// \file
/// Definition of the Diligent::ITextureD3D11 interface

#include "Texture.h"
#include "../../GraphicsEngine/interface/Texture.h"

namespace Diligent
{
Expand Down
2 changes: 1 addition & 1 deletion Graphics/GraphicsEngineD3D11/interface/TextureViewD3D11.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/// \file
/// Definition of the Diligent::ITextureViewD3D11 interface

#include "TextureView.h"
#include "../../GraphicsEngine/interface/TextureView.h"

namespace Diligent
{
Expand Down
2 changes: 1 addition & 1 deletion Graphics/GraphicsEngineD3D12/interface/BufferD3D12.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/// \file
/// Definition of the Diligent::IBufferD3D12 interface

#include "Buffer.h"
#include "../../GraphicsEngine/interface/Buffer.h"

namespace Diligent
{
Expand Down
2 changes: 1 addition & 1 deletion Graphics/GraphicsEngineD3D12/interface/BufferViewD3D12.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/// \file
/// Definition of the Diligent::IBufferViewD3D12 interface

#include "BufferView.h"
#include "../../GraphicsEngine/interface/BufferView.h"

namespace Diligent
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/// \file
/// Definition of the Diligent::IDeviceContextD3D11 interface

#include "DeviceContext.h"
#include "../../GraphicsEngine/interface/DeviceContext.h"

namespace Diligent
{
Expand Down

0 comments on commit 038fa79

Please sign in to comment.