1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[dxvk] Remove DxvkSemaphore

This commit is contained in:
Philip Rebohle 2018-11-28 12:32:09 +01:00
parent 80b9f1d03b
commit 092cad0e76
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
7 changed files with 1 additions and 77 deletions

View File

@ -12,7 +12,6 @@
#include "dxvk_query_tracker.h"
#include "dxvk_staging.h"
#include "dxvk_stats.h"
#include "dxvk_sync.h"
namespace dxvk {

View File

@ -186,11 +186,6 @@ namespace dxvk {
}
Rc<DxvkSemaphore> DxvkDevice::createSemaphore() {
return new DxvkSemaphore(m_vkd);
}
Rc<DxvkShader> DxvkDevice::createShader(
VkShaderStageFlagBits stage,
uint32_t slotCount,

View File

@ -20,7 +20,6 @@
#include "dxvk_sampler.h"
#include "dxvk_shader.h"
#include "dxvk_stats.h"
#include "dxvk_sync.h"
#include "dxvk_unbound.h"
#include "../vulkan/vulkan_presenter.h"
@ -263,12 +262,6 @@ namespace dxvk {
Rc<DxvkSampler> createSampler(
const DxvkSamplerCreateInfo& createInfo);
/**
* \brief Creates a semaphore object
* \returns Newly created semaphore
*/
Rc<DxvkSemaphore> createSemaphore();
/**
* \brief Creates a shader module
*

View File

@ -5,8 +5,8 @@
#include <queue>
#include "../util/thread.h"
#include "dxvk_cmdlist.h"
#include "dxvk_sync.h"
namespace dxvk {

View File

@ -1,23 +0,0 @@
#include "dxvk_sync.h"
namespace dxvk {
DxvkSemaphore::DxvkSemaphore(
const Rc<vk::DeviceFn>& vkd)
: m_vkd(vkd) {
VkSemaphoreCreateInfo info;
info.sType = VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO;
info.pNext = nullptr;
info.flags = 0;
if (m_vkd->vkCreateSemaphore(m_vkd->device(), &info, nullptr, &m_semaphore) != VK_SUCCESS)
throw DxvkError("DxvkSemaphore::DxvkSemaphore: Failed to create semaphore");
}
DxvkSemaphore::~DxvkSemaphore() {
m_vkd->vkDestroySemaphore(
m_vkd->device(), m_semaphore, nullptr);
}
}

View File

@ -1,39 +0,0 @@
#pragma once
#include "dxvk_resource.h"
namespace dxvk {
/**
* \brief Semaphore object
*
* This is merely an abstraction of Vulkan's semaphores.
* They are only used internally by \ref DxvkSwapchain
* in order to synchronize the presentation engine with
* command buffer submissions.
*/
class DxvkSemaphore : public DxvkResource {
public:
DxvkSemaphore(const Rc<vk::DeviceFn>& vkd);
~DxvkSemaphore();
/**
* \brief Semaphore handle
*
* Internal use only.
* \returns Semaphore handle
*/
VkSemaphore handle() const {
return m_semaphore;
}
private:
Rc<vk::DeviceFn> m_vkd;
VkSemaphore m_semaphore;
};
}

View File

@ -86,7 +86,6 @@ dxvk_src = files([
'dxvk_staging.cpp',
'dxvk_state_cache.cpp',
'dxvk_stats.cpp',
'dxvk_sync.cpp',
'dxvk_unbound.cpp',
'dxvk_util.cpp',