summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/D3D/BoundingBox.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2019-03-09 23:31:36 +1000
committerStenzek <stenzek@gmail.com>2019-03-29 19:52:38 +1000
commit3d8014beb565d0c18d511438957cbed668da8fb2 (patch)
treee37a5fb4a87114f60350cc88a72a38a6b6f21e56 /Source/Core/VideoBackends/D3D/BoundingBox.cpp
parentea15080d8f59a62ba347ff4c6037116035bc69b4 (diff)
D3D11: Use D3DCommon where appropriate
Diffstat (limited to 'Source/Core/VideoBackends/D3D/BoundingBox.cpp')
-rw-r--r--Source/Core/VideoBackends/D3D/BoundingBox.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/VideoBackends/D3D/BoundingBox.cpp b/Source/Core/VideoBackends/D3D/BoundingBox.cpp
index abbd7036a1..511bf5cf66 100644
--- a/Source/Core/VideoBackends/D3D/BoundingBox.cpp
+++ b/Source/Core/VideoBackends/D3D/BoundingBox.cpp
@@ -6,6 +6,7 @@
#include "Common/CommonTypes.h"
#include "Common/MsgHandler.h"
#include "VideoBackends/D3D/D3DState.h"
+#include "VideoBackends/D3DCommon/Common.h"
#include "VideoCommon/VideoConfig.h"
namespace DX11
@@ -35,7 +36,7 @@ void BBox::Init()
HRESULT hr;
hr = D3D::device->CreateBuffer(&desc, &data, &s_bbox_buffer);
CHECK(SUCCEEDED(hr), "Create BoundingBox Buffer.");
- D3D::SetDebugObjectName(s_bbox_buffer, "BoundingBox Buffer");
+ D3DCommon::SetDebugObjectName(s_bbox_buffer, "BoundingBox Buffer");
// Second to use as a staging buffer.
desc.Usage = D3D11_USAGE_STAGING;
@@ -43,7 +44,7 @@ void BBox::Init()
desc.BindFlags = 0;
hr = D3D::device->CreateBuffer(&desc, nullptr, &s_bbox_staging_buffer);
CHECK(SUCCEEDED(hr), "Create BoundingBox Staging Buffer.");
- D3D::SetDebugObjectName(s_bbox_staging_buffer, "BoundingBox Staging Buffer");
+ D3DCommon::SetDebugObjectName(s_bbox_staging_buffer, "BoundingBox Staging Buffer");
// UAV is required to allow concurrent access.
D3D11_UNORDERED_ACCESS_VIEW_DESC UAVdesc = {};
@@ -54,7 +55,7 @@ void BBox::Init()
UAVdesc.Buffer.NumElements = 4;
hr = D3D::device->CreateUnorderedAccessView(s_bbox_buffer, &UAVdesc, &s_bbox_uav);
CHECK(SUCCEEDED(hr), "Create BoundingBox UAV.");
- D3D::SetDebugObjectName(s_bbox_uav, "BoundingBox UAV");
+ D3DCommon::SetDebugObjectName(s_bbox_uav, "BoundingBox UAV");
D3D::stateman->SetOMUAV(s_bbox_uav);
}
}