From aeab6088bc0553773da829247a71517ad354b3a9 Mon Sep 17 00:00:00 2001 From: lizzie Date: Mon, 9 Feb 2026 08:17:15 +0000 Subject: [PATCH] fx --- src/video_core/surface.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/video_core/surface.h b/src/video_core/surface.h index a349ad6dc0..9b65d44174 100644 --- a/src/video_core/surface.h +++ b/src/video_core/surface.h @@ -1,17 +1,17 @@ -// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: 2014 Citra Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later #pragma once +#undef PIXEL_FORMAT_LIST + #include #include #include "common/assert.h" #include "common/common_types.h" #include "common/logging/log.h" -#include "video_core/gpu.h" -#include "video_core/textures/texture.h" namespace VideoCore::Surface { @@ -181,13 +181,18 @@ constexpr u32 BitsPerBlock(PixelFormat format) noexcept { } } -#undef PIXEL_FORMAT_LIST - /// Returns the sizer in bytes of the specified pixel format constexpr u32 BytesPerBlock(PixelFormat pixel_format) { return BitsPerBlock(pixel_format) / CHAR_BIT; } +} + +#include "video_core/gpu.h" +#include "video_core/textures/texture.h" + +namespace VideoCore::Surface { + SurfaceTarget SurfaceTargetFromTextureType(Tegra::Texture::TextureType texture_type); bool SurfaceTargetIsLayered(SurfaceTarget target); bool SurfaceTargetIsArray(SurfaceTarget target);