mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-21 04:54:15 +01:00
[dxvk] Remove useless DxvkMarker class
This commit is contained in:
parent
500c86c054
commit
fb6e0ad6c1
@ -109,13 +109,6 @@ namespace dxvk {
|
||||
void* mapPtr = nullptr;
|
||||
};
|
||||
|
||||
struct D3D9StagingBufferMarkerPayload {
|
||||
uint64_t sequenceNumber;
|
||||
VkDeviceSize allocated;
|
||||
};
|
||||
|
||||
using D3D9StagingBufferMarker = DxvkMarker<D3D9StagingBufferMarkerPayload>;
|
||||
|
||||
class D3D9DeviceEx final : public ComObjectClamp<IDirect3DDevice9Ex> {
|
||||
constexpr static uint32_t DefaultFrameLatency = 3;
|
||||
constexpr static uint32_t MaxFrameLatency = 20;
|
||||
|
@ -8,7 +8,6 @@
|
||||
#include "dxvk_queue.h"
|
||||
#include "dxvk_resource.h"
|
||||
#include "dxvk_util.h"
|
||||
#include "dxvk_marker.h"
|
||||
|
||||
namespace dxvk {
|
||||
|
||||
@ -1375,15 +1374,6 @@ namespace dxvk {
|
||||
*/
|
||||
void insertDebugLabel(VkDebugUtilsLabelEXT *label);
|
||||
|
||||
/**
|
||||
* \brief Inserts a marker object
|
||||
* \param [in] marker The marker
|
||||
*/
|
||||
template<typename T>
|
||||
void insertMarker(const Rc<DxvkMarker<T>>& marker) {
|
||||
m_cmd->trackResource<DxvkAccess::Write>(marker);
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Increments a given stat counter
|
||||
*
|
||||
|
@ -24,7 +24,6 @@
|
||||
#include "dxvk_sparse.h"
|
||||
#include "dxvk_stats.h"
|
||||
#include "dxvk_unbound.h"
|
||||
#include "dxvk_marker.h"
|
||||
|
||||
namespace dxvk {
|
||||
|
||||
|
@ -1,35 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "dxvk_resource.h"
|
||||
|
||||
namespace dxvk {
|
||||
|
||||
/**
|
||||
* \brief Marker
|
||||
*
|
||||
* Arbitrary marker that can be used to track whether
|
||||
* the GPU has finished processing certain commands,
|
||||
* and stores some data.
|
||||
*/
|
||||
template<typename T>
|
||||
class DxvkMarker : public DxvkResource {
|
||||
|
||||
public:
|
||||
|
||||
DxvkMarker(T&& payload)
|
||||
: m_payload(std::move(payload)) { }
|
||||
|
||||
DxvkMarker(const T& payload)
|
||||
: m_payload(payload) { }
|
||||
|
||||
const T& payload() const {
|
||||
return m_payload;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
T m_payload;
|
||||
|
||||
};
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user