formatting: Unify indentation type in the newly added files to tabs

This commit is contained in:
kd-11 2020-01-17 23:17:14 +03:00 committed by kd-11
parent bad4d1ff05
commit 48407752a6
2 changed files with 185 additions and 185 deletions

View File

@ -38,8 +38,8 @@ GLuint GLGSRender::get_present_source(gl::present_surface_info* info, const rsx:
} }
else if (auto surface = m_gl_texture_cache.find_texture_from_dimensions<true>(info->address, info->format, info->width, info->height)) else if (auto surface = m_gl_texture_cache.find_texture_from_dimensions<true>(info->address, info->format, info->width, info->height))
{ {
//Hack - this should be the first location to check for output // Hack - this should be the first location to check for output
//The render might have been done offscreen or in software and a blit used to display // The render might have been done offscreen or in software and a blit used to display
if (const auto tex = surface->get_raw_texture(); tex) image = tex->id(); if (const auto tex = surface->get_raw_texture(); tex) image = tex->id();
} }

View File

@ -57,10 +57,10 @@ void VKGSRender::reinitialize_swapchain()
vk::change_image_layout(*m_current_command_buffer, target_image, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, target_layout, range); vk::change_image_layout(*m_current_command_buffer, target_image, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, target_layout, range);
} }
//Will have to block until rendering is completed // Will have to block until rendering is completed
vk::fence resize_fence(*m_device); vk::fence resize_fence(*m_device);
//Flush the command buffer // Flush the command buffer
close_and_submit_command_buffer(&resize_fence); close_and_submit_command_buffer(&resize_fence);
vk::wait_for_fence(&resize_fence); vk::wait_for_fence(&resize_fence);
@ -104,10 +104,10 @@ void VKGSRender::advance_queued_frames()
// Check all other frames for completion and clear resources // Check all other frames for completion and clear resources
check_present_status(); check_present_status();
//m_rtts storage is double buffered and should be safe to tag on frame boundary // m_rtts storage is double buffered and should be safe to tag on frame boundary
m_rtts.free_invalidated(); m_rtts.free_invalidated();
//texture cache is also double buffered to prevent use-after-free // Texture cache is also double buffered to prevent use-after-free
m_texture_cache.on_frame_end(); m_texture_cache.on_frame_end();
m_samplers_dirty.store(true); m_samplers_dirty.store(true);
@ -221,7 +221,7 @@ void VKGSRender::frame_context_cleanup(vk::frame_context_t *ctx, bool free_resou
{ {
m_last_heap_sync_time = ctx->last_frame_sync_time; m_last_heap_sync_time = ctx->last_frame_sync_time;
//Heap cleanup; deallocates memory consumed by the frame if it is still held // Heap cleanup; deallocates memory consumed by the frame if it is still held
m_attrib_ring_info.m_get_pos = ctx->attrib_heap_ptr; m_attrib_ring_info.m_get_pos = ctx->attrib_heap_ptr;
m_vertex_env_ring_info.m_get_pos = ctx->vtx_env_heap_ptr; m_vertex_env_ring_info.m_get_pos = ctx->vtx_env_heap_ptr;
m_fragment_env_ring_info.m_get_pos = ctx->frag_env_heap_ptr; m_fragment_env_ring_info.m_get_pos = ctx->frag_env_heap_ptr;