rasterizer_cache: Refactor texture cube interface

* Reuse our Surface class instead of having a separate one, to avoid reimplementing stuff in the backend
This commit is contained in:
emufan4568
2022-09-13 21:38:21 +03:00
committed by GPUCode
parent 40159d9779
commit 9403049671
9 changed files with 102 additions and 92 deletions

View File

@@ -3,7 +3,6 @@
// Refer to the license.txt file included.
#pragma once
#include <functional>
#include <span>
#include "common/hash.h"
#include "video_core/rasterizer_cache/pixel_format.h"
@@ -15,6 +14,8 @@ struct HostTextureTag {
PixelFormat format{};
u32 width = 0;
u32 height = 0;
u32 levels = 1;
u32 layers = 1;
auto operator<=>(const HostTextureTag&) const noexcept = default;
@@ -58,7 +59,7 @@ void SwizzleTexture(const SurfaceParams& params, u32 start_offset,
void UnswizzleTexture(const SurfaceParams& params, u32 start_offset,
std::span<std::byte> source_tiled, std::span<std::byte> dest_linear);
} // namespace OpenGL
} // namespace VideoCore
namespace std {
template <>