Skip to content

Commit

Permalink
D3D12: Fix some pragma warnings for push and pop.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewRichards-Code committed Jan 10, 2025
1 parent 0c332a2 commit 8970851
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DirectX12/Buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
#include "Platform/DirectX12/Export.h"
#include "Platform/CrossPlatform/Buffer.h"


#pragma warning(push)
#pragma warning(disable:4251)

namespace platform
{
namespace dx12
{
/// DirectX12 buffer class that can be used as index buffer and vertex buffer
class SIMUL_DIRECTX12_EXPORT Buffer:public platform::crossplatform::Buffer
class SIMUL_DIRECTX12_EXPORT Buffer : public platform::crossplatform::Buffer
{
public:
Buffer();
Expand Down Expand Up @@ -47,3 +47,4 @@ namespace platform
}
};

#pragma warning(pop)
4 changes: 4 additions & 0 deletions DirectX12/PlatformStructuredBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "SimulDirectXHeader.h"
#include "Heap.h"

#pragma warning(push)
#pragma warning(disable:4251)

namespace platform
Expand All @@ -14,6 +15,7 @@ namespace platform
class EffectPass;
class Effect;
class RenderPlatform;

//! DirectX12 structured buffer class
class PlatformStructuredBuffer:public crossplatform::PlatformStructuredBuffer
{
Expand Down Expand Up @@ -88,3 +90,5 @@ namespace platform
};
}
}

#pragma warning(pop)

0 comments on commit 8970851

Please sign in to comment.