Formatting fixes

- Non-functional stuff, move along
This commit is contained in:
kd-11 2021-07-14 20:16:57 +03:00 committed by kd-11
parent 2524c35638
commit 369f1132f3
4 changed files with 9 additions and 8 deletions

View File

@ -483,6 +483,7 @@ namespace vk
break; break;
default: default:
element_size = get_format_texel_width(fmt); element_size = get_format_texel_width(fmt);
break;
} }
vk::image* src = nullptr; vk::image* src = nullptr;

View File

@ -831,7 +831,7 @@ namespace vk
break; break;
case rsx::texture_upload_context::dma: case rsx::texture_upload_context::dma:
case rsx::texture_upload_context::framebuffer_storage: case rsx::texture_upload_context::framebuffer_storage:
// Should not initialized with this method // Should not be initialized with this method
default: default:
fmt::throw_exception("Unexpected upload context 0x%x", u32(context)); fmt::throw_exception("Unexpected upload context 0x%x", u32(context));
} }

View File

@ -471,7 +471,7 @@ namespace vk
cached_texture_section* create_new_texture(vk::command_buffer& cmd, const utils::address_range& rsx_range, u16 width, u16 height, u16 depth, u16 mipmaps, u16 pitch, cached_texture_section* create_new_texture(vk::command_buffer& cmd, const utils::address_range& rsx_range, u16 width, u16 height, u16 depth, u16 mipmaps, u16 pitch,
u32 gcm_format, rsx::texture_upload_context context, rsx::texture_dimension_extended type, bool swizzled, rsx::component_order swizzle_flags, rsx::flags32_t flags) override; u32 gcm_format, rsx::texture_upload_context context, rsx::texture_dimension_extended type, bool swizzled, rsx::component_order swizzle_flags, rsx::flags32_t flags) override;
cached_texture_section* create_nul_section(vk::command_buffer& /*cmd*/, const utils::address_range& rsx_range, bool memory_load) override; cached_texture_section* create_nul_section(vk::command_buffer& cmd, const utils::address_range& rsx_range, bool memory_load) override;
cached_texture_section* upload_image_from_cpu(vk::command_buffer& cmd, const utils::address_range& rsx_range, u16 width, u16 height, u16 depth, u16 mipmaps, u16 pitch, u32 gcm_format, cached_texture_section* upload_image_from_cpu(vk::command_buffer& cmd, const utils::address_range& rsx_range, u16 width, u16 height, u16 depth, u16 mipmaps, u16 pitch, u32 gcm_format,
rsx::texture_upload_context context, const std::vector<rsx::subresource_layout>& subresource_layout, rsx::texture_dimension_extended type, bool swizzled) override; rsx::texture_upload_context context, const std::vector<rsx::subresource_layout>& subresource_layout, rsx::texture_dimension_extended type, bool swizzled) override;