[Vulkan] Remove backend swap event (unused and confusing)

This commit is contained in:
DrChat
2018-03-01 10:19:11 -06:00
parent b2f1bf914a
commit b3626a039b
2 changed files with 0 additions and 37 deletions

View File

@@ -122,27 +122,12 @@ bool VulkanCommandProcessor::SetupContext() {
return false;
}
VkEventCreateInfo info = {
VK_STRUCTURE_TYPE_EVENT_CREATE_INFO,
nullptr,
0,
};
status = vkCreateEvent(*device_, &info, nullptr,
reinterpret_cast<VkEvent*>(&swap_state_.backend_data));
if (status != VK_SUCCESS) {
return false;
}
return true;
}
void VulkanCommandProcessor::ShutdownContext() {
// TODO(benvanik): wait until idle.
vkDestroyEvent(*device_, reinterpret_cast<VkEvent>(swap_state_.backend_data),
nullptr);
if (swap_state_.front_buffer_texture) {
// Free swap chain image.
DestroySwapImage();
@@ -504,10 +489,6 @@ void VulkanCommandProcessor::PerformSwap(uint32_t frontbuffer_ptr,
std::lock_guard<std::mutex> lock(swap_state_.mutex);
swap_state_.width = frontbuffer_width;
swap_state_.height = frontbuffer_height;
auto swap_event = reinterpret_cast<VkEvent>(swap_state_.backend_data);
vkCmdSetEvent(copy_commands, swap_event,
VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT);
}
status = vkEndCommandBuffer(copy_commands);