mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-15 06:10:06 +00:00
Formatting fixes
This commit is contained in:
parent
cc7d2f6576
commit
aebd108328
@ -222,9 +222,10 @@ u32 SurfaceParams::LevelOf(PAddr level_addr) const {
|
||||
std::string SurfaceParams::DebugName(bool scaled, bool custom, u8 sample_count) const noexcept {
|
||||
const u32 scaled_width = scaled ? GetScaledWidth() : width;
|
||||
const u32 scaled_height = scaled ? GetScaledHeight() : height;
|
||||
return fmt::format("Surface: {}x{} {} samples {} levels from {:#x} to {:#x} ({}{})", scaled_width,
|
||||
scaled_height, PixelFormatAsString(pixel_format), static_cast<u32>(sample_count), levels, addr,
|
||||
end, custom ? "custom," : "", scaled ? "scaled" : "unscaled");
|
||||
return fmt::format("Surface: {}x{} {} samples {} levels from {:#x} to {:#x} ({}{})",
|
||||
scaled_width, scaled_height, PixelFormatAsString(pixel_format),
|
||||
static_cast<u32>(sample_count), levels, addr, end, custom ? "custom," : "",
|
||||
scaled ? "scaled" : "unscaled");
|
||||
}
|
||||
|
||||
bool SurfaceParams::operator==(const SurfaceParams& other) const noexcept {
|
||||
|
@ -1487,8 +1487,8 @@ void Surface::BlitScale(const VideoCore::TextureBlit& blit, bool up_scale) {
|
||||
|
||||
Framebuffer::Framebuffer(TextureRuntime& runtime, const VideoCore::FramebufferParams& params,
|
||||
Surface* color, Surface* depth)
|
||||
: VideoCore::FramebufferParams{params},
|
||||
res_scale{color ? color->res_scale : (depth ? depth->res_scale : 1u)},
|
||||
: VideoCore::FramebufferParams{params}, res_scale{color ? color->res_scale
|
||||
: (depth ? depth->res_scale : 1u)},
|
||||
sample_count{params.sample_count} {
|
||||
auto& renderpass_cache = runtime.GetRenderpassCache();
|
||||
if (shadow_rendering && !color) {
|
||||
|
Loading…
Reference in New Issue
Block a user